From ecd622e504d3cd88b8fe6557c03197b55fea3481 Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Sat, 23 Mar 2024 21:53:34 -0700 Subject: [PATCH] add command option hotkey_window=0 --- .../SystrayShell/Program.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs index d0e07ad..efe9a12 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs @@ -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(); }