fix random crash by start hotkey window before pw core

This commit is contained in:
Kang Yu 2024-03-25 22:17:47 -07:00
parent 893343f3c2
commit f4bc7a51a8

View file

@ -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();
}