add command option hotkey_window=0

This commit is contained in:
Kang Yu 2024-03-23 21:53:34 -07:00
parent 55e2ff2356
commit ecd622e504

View file

@ -70,6 +70,7 @@ namespace PersistentWindows.SystrayShell
bool auto_upgrade = false;
bool legacy_icon = false;
bool waiting_taskbar = false;
bool hotkey_window = true;
foreach (var arg in args)
{
@ -193,6 +194,9 @@ namespace PersistentWindows.SystrayShell
case "-ctrl_minimize_to_tray=0":
pwp.enableMinimizeToTray = false;
break;
case "-hotkey_window=0":
hotkey_window = false;
break;
case "-prompt_session_restore":
prompt_session_restore = true;
break;
@ -351,7 +355,8 @@ namespace PersistentWindows.SystrayShell
StartSplashForm();
}
HotKeyForm.Start();
if (hotkey_window)
HotKeyForm.Start();
Application.Run();
}