mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-03-06 11:50:43 +01:00
Update window state handling
This commit is contained in:
@@ -343,9 +343,9 @@ void WindowCtrlWin::handleWinEvent( HWINEVENTHOOK hook, DWORD event, HWND hWn
|
||||
*/
|
||||
void WindowCtrlWin::hookAction()
|
||||
{
|
||||
if( getWindowState() == "normal" && getMinimizeType() > 0 )
|
||||
if( ( getWindowState() != Preferences::STATE_MINIMIZED ) && ( getMinimizeType() > 0 ) )
|
||||
{
|
||||
setWindowState( "minimized" );
|
||||
setWindowState( Preferences::STATE_MINIMIZED );
|
||||
|
||||
/*
|
||||
* Hide to tray
|
||||
|
||||
Reference in New Issue
Block a user