File tree Expand file tree Collapse file tree 2 files changed +2
-910
lines changed
Expand file tree Collapse file tree 2 files changed +2
-910
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments