Skip to content

Commit 064dca7

Browse files
committed
Check dialog handle
1 parent f536599 commit 064dca7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Flow.Launcher.Infrastructure/QuickSwitch/QuickSwitch.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public static void OnToggleHotkey(object sender, HotkeyEventArgs args)
160160

161161
private static void NavigateDialogPath(HWND dialog, Action action = null)
162162
{
163+
if (dialog == HWND.Null || GetWindowClassName(dialog) != DialogWindowClassName) return;
164+
163165
object document = null;
164166
try
165167
{

0 commit comments

Comments
 (0)