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 170c085 commit 8af41b6Copy full SHA for 8af41b6
Flow.Launcher/ViewModel/MainViewModel.cs
@@ -1936,11 +1936,16 @@ public async Task SetupQuickSwitchAsync(nint handle)
1936
1937
public async void ResetQuickSwitch()
1938
{
1939
- if (DialogWindowHandle == nint.Zero) return;
+ // Cache original dialog window handle
1940
+ var dialogWindowHandle = DialogWindowHandle;
1941
1942
+ // Reset the quick switch state
1943
DialogWindowHandle = nint.Zero;
1944
_isQuickSwitch = false;
1945
1946
+ // If dialog window handle is not set, we should not reset the main window visibility
1947
+ if (dialogWindowHandle == nint.Zero) return;
1948
+
1949
if (_previousMainWindowVisibilityStatus != MainWindowVisibilityStatus)
1950
1951
// Show or hide to change visibility
0 commit comments