We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db46a4a commit bc823b3Copy full SHA for bc823b3
Flow.Launcher.Infrastructure/Win32Helper.cs
@@ -364,6 +364,9 @@ public static unsafe void SwitchToEnglishKeyboardLayout(bool backupPrevious)
364
// No installed English layout found
365
if (enHKL == HKL.Null) return;
366
367
+ // When application is exiting, the Application.Current will be null
368
+ if (Application.Current == null) return;
369
+
370
// Get the FL main window
371
var hwnd = GetWindowHandle(Application.Current.MainWindow, true);
372
if (hwnd == HWND.Null) return;
0 commit comments