mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix Application.Current null exception
This commit is contained in:
parent
db46a4adfd
commit
bc823b3ca4
1 changed files with 3 additions and 0 deletions
|
|
@ -364,6 +364,9 @@ namespace Flow.Launcher.Infrastructure
|
|||
// No installed English layout found
|
||||
if (enHKL == HKL.Null) return;
|
||||
|
||||
// When application is exiting, the Application.Current will be null
|
||||
if (Application.Current == null) return;
|
||||
|
||||
// Get the FL main window
|
||||
var hwnd = GetWindowHandle(Application.Current.MainWindow, true);
|
||||
if (hwnd == HWND.Null) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue