mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-20 19:30:31 +12:00
[Feature] When open during mainpreload open it afterwards (#251), version 1.1.0.8
This commit is contained in:
parent
7a0bfef122
commit
c2d5ca5062
|
@ -41,6 +41,7 @@ namespace SystemTrayMenu.Business
|
|||
private bool searchTextChanging;
|
||||
private bool waitingForReactivate;
|
||||
private int rowIndexLastMouseDown = -1;
|
||||
private bool showMenuAfterMainPreload;
|
||||
|
||||
public Menus()
|
||||
{
|
||||
|
@ -88,6 +89,11 @@ namespace SystemTrayMenu.Business
|
|||
workerMainMenu.DoWork -= LoadMenu;
|
||||
menus[0] = Create(menuData, Path.GetFileName(Config.Path));
|
||||
IconReader.MainPreload = false;
|
||||
|
||||
if (showMenuAfterMainPreload)
|
||||
{
|
||||
AsEnumerable.ToList().ForEach(m => { m.ShowWithFade(); });
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -102,6 +108,11 @@ namespace SystemTrayMenu.Business
|
|||
if (IconReader.MainPreload)
|
||||
{
|
||||
IconReader.MainPreload = false;
|
||||
|
||||
if (showMenuAfterMainPreload)
|
||||
{
|
||||
AsEnumerable.ToList().ForEach(m => { m.ShowWithFade(); });
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -553,6 +564,7 @@ namespace SystemTrayMenu.Business
|
|||
// Ignore open close events during main preload #248
|
||||
if (IconReader.MainPreload && !isMainPreload)
|
||||
{
|
||||
showMenuAfterMainPreload = true;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue