Skip to content

Commit 38e1b4c

Browse files
committed
use NotifyIconAdv from common lib
1 parent 3da9925 commit 38e1b4c

File tree

2 files changed

+2
-910
lines changed

2 files changed

+2
-910
lines changed

OpenHardwareMonitor/UI/MainForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,15 +870,15 @@ private void SysTrayHideShow()
870870

871871
protected override void WndProc(ref Message m)
872872
{
873-
if (_minimizeToTray.Value && m.Msg == WinApiHelper.WM_SYS_COMMAND && m.WParam.ToInt64() == WinApiHelper.SC_MINIMIZE)
873+
if (_minimizeToTray.Value && m.Msg == WinApiConstants.WM_SYS_COMMAND && m.WParam.ToInt64() == WinApiConstants.SC_MINIMIZE)
874874
{
875875
SysTrayHideShow();
876876
}
877877
//else if (m.Msg == WinApiHelper.WM_WININICHANGE && Marshal.PtrToStringUni(m.LParam) == "ImmersiveColorSet" && Theme.IsAutoThemeEnabled)
878878
//{
879879
// Theme.SetAutoTheme();
880880
//}
881-
else if (_minimizeOnClose.Value && m.Msg == WinApiHelper.WM_SYS_COMMAND && m.WParam.ToInt64() == WinApiHelper.SC_CLOSE)
881+
else if (_minimizeOnClose.Value && m.Msg == WinApiConstants.WM_SYS_COMMAND && m.WParam.ToInt64() == WinApiConstants.SC_CLOSE)
882882
{
883883
//Apparently the user wants to minimize rather than close
884884
//Now we still need to check if we're going to the tray or not

0 commit comments

Comments
 (0)