From b5b202fe8884f33ed6484bacf6144768666452e6 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sat, 12 Feb 2022 18:06:45 -0600 Subject: [PATCH] Revert to results panel before hiding when executing context menu --- Flow.Launcher/ViewModel/MainViewModel.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index e92867019..8a3b99801 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -211,11 +211,6 @@ namespace Flow.Launcher.ViewModel SpecialKeyState = GlobalHotkey.CheckModifiers() }); - if (hideWindow) - { - Hide(); - } - if (SelectedIsFromQueryResults()) { _userSelectedRecord.Add(result); @@ -225,6 +220,11 @@ namespace Flow.Launcher.ViewModel { SelectedResults = Results; } + + if (hideWindow) + { + Hide(); + } } }); @@ -772,10 +772,10 @@ namespace Flow.Launcher.ViewModel public void Show() { - MainWindowVisibility = Visibility.Visible; - SelectedResults = Results; + MainWindowVisibility = Visibility.Visible; + MainWindowVisibilityStatus = true; MainWindowOpacity = 1;