code cleanup

This commit is contained in:
Kang Yu 2024-04-01 11:18:19 -07:00
parent dd429c1df7
commit 41603fd49e

View file

@ -358,6 +358,8 @@ namespace PersistentWindows.SystrayShell
StartSplashForm(); StartSplashForm();
} }
//systrayForm.notifyIconMain.Visible = false;
Application.Run(); Application.Run();
} }
@ -403,7 +405,6 @@ namespace PersistentWindows.SystrayShell
if (silent) if (silent)
return; return;
//systrayForm.notifyIconMain.Visible = false;
if (Gui) if (Gui)
ni.Visible = true; ni.Visible = true;
@ -426,12 +427,6 @@ namespace PersistentWindows.SystrayShell
NotifyIcon ni = systrayForm.notifyIconMain; NotifyIcon ni = systrayForm.notifyIconMain;
ni.Icon = IdleIcon; ni.Icon = IdleIcon;
/*
if (silent)
return;
*/
//systrayForm.notifyIconMain.Visible = false;
if (Gui) if (Gui)
ni.Visible = true; ni.Visible = true;
} }