Skip to content

Commit 3aec2a1

Browse files
committed
Fix handle clear check
1 parent dbb33eb commit 3aec2a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Flow.Launcher/ViewModel/MainViewModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ public async void SetupQuickSwitch(nint handle)
15991599

16001600
await Task.Delay(300); // If don't give a time, Positioning will be weird.
16011601

1602-
if (handle == nint.Zero) return; // If handle is null, it means the dialog is closed, so return
1602+
if (DialogWindowHandle == nint.Zero) return; // If handle is cleared, which means the dialog is closed, do nothing
16031603

16041604
if (MainWindowVisibilityStatus)
16051605
{

0 commit comments

Comments
 (0)