From f4bc7a51a84d5ca2f471ac3c89a00e8951bd855a Mon Sep 17 00:00:00 2001 From: Kang Yu Date: Mon, 25 Mar 2024 22:17:47 -0700 Subject: [PATCH] fix random crash by start hotkey window before pw core --- Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs index efe9a12..2595038 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs @@ -344,6 +344,9 @@ namespace PersistentWindows.SystrayShell if (ignore_process.Length > 0) pwp.SetIgnoreProcess(ignore_process); + if (hotkey_window) + HotKeyForm.Start(); + if (!pwp.Start(auto_restore_from_db_at_startup)) { systrayForm.notifyIconMain.Visible = false; @@ -355,8 +358,6 @@ namespace PersistentWindows.SystrayShell StartSplashForm(); } - if (hotkey_window) - HotKeyForm.Start(); Application.Run(); }