mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-30 17:16:52 +13:00
Remove deactivated flag from logic that will open/close main menu
This commit is contained in:
parent
cd5ab5aa5c
commit
7d4c40a71e
1 changed files with 1 additions and 14 deletions
|
@ -39,7 +39,6 @@ namespace SystemTrayMenu.Business
|
|||
private OpenCloseState openCloseState = OpenCloseState.Default;
|
||||
private TaskbarPosition taskbarPosition = TaskbarPosition.Unknown;
|
||||
private bool showMenuAfterMainPreload;
|
||||
private bool wasDeactivated;
|
||||
private Menu? mainMenu;
|
||||
|
||||
public Menus()
|
||||
|
@ -244,11 +243,7 @@ namespace SystemTrayMenu.Business
|
|||
}
|
||||
|
||||
waitToOpenMenu.MouseActive = byClick;
|
||||
if (byClick && !Config.AlwaysOpenByPin && wasDeactivated)
|
||||
{
|
||||
// By click on notifyicon the menu gets deactivated and closed
|
||||
}
|
||||
else if (string.IsNullOrEmpty(Config.Path))
|
||||
if (string.IsNullOrEmpty(Config.Path))
|
||||
{
|
||||
// Case when Folder Dialog open
|
||||
}
|
||||
|
@ -286,8 +281,6 @@ namespace SystemTrayMenu.Business
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
wasDeactivated = false;
|
||||
}
|
||||
|
||||
private static Menu? IsVisibleAnyMenu(Menu? menu)
|
||||
|
@ -534,10 +527,6 @@ namespace SystemTrayMenu.Business
|
|||
else if (!Settings.Default.StaysOpenWhenFocusLostAfterEnterPressed)
|
||||
{
|
||||
FadeHalfOrOutIfNeeded();
|
||||
if (!App.IsActiveApp)
|
||||
{
|
||||
wasDeactivated = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -634,8 +623,6 @@ namespace SystemTrayMenu.Business
|
|||
openCloseState = OpenCloseState.Closing;
|
||||
|
||||
mainMenu?.HideWithFade(true);
|
||||
|
||||
Config.AlwaysOpenByPin = false;
|
||||
}
|
||||
|
||||
private void GetScreenBounds(out Rect screenBounds, out bool useCustomLocation, out StartLocation startLocation)
|
||||
|
|
Loading…
Reference in a new issue