Skip to content

Commit e50fd80

Browse files
committed
Clear quick switch state if handle is cleare
1 parent 8af41b6 commit e50fd80

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,8 +1862,12 @@ public async Task SetupQuickSwitchAsync(nint handle)
18621862
await Task.Delay(300);
18631863
}
18641864

1865-
// If handle is cleared, which means the dialog is closed, do nothing
1866-
if (DialogWindowHandle == nint.Zero) return;
1865+
// If handle is cleared, which means the dialog is closed, clear quick switch state
1866+
if (DialogWindowHandle == nint.Zero)
1867+
{
1868+
_isQuickSwitch = false;
1869+
return;
1870+
}
18671871

18681872
// Initialize quick switch window
18691873
if (MainWindowVisibilityStatus)

0 commit comments

Comments
 (0)