Skip to content

Commit 854cc69

Browse files
committed
Check handle invalid
1 parent 0e02416 commit 854cc69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,9 @@ public bool ShouldIgnoreHotkeys()
15901590

15911591
public async void SetupQuickSwitch(nint handle)
15921592
{
1593-
if (handle != nint.Zero && DialogWindowHandle != handle) // Only set once for one file dialog
1593+
if (handle == nint.Zero) return;
1594+
1595+
if (DialogWindowHandle != handle) // Only set once for one file dialog
15941596
{
15951597
PreviousMainWindowVisibilityStatus = MainWindowVisibilityStatus;
15961598
DialogWindowHandle = handle;

0 commit comments

Comments
 (0)