diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 846b46a43..ceced2d18 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -491,6 +491,8 @@ namespace Flow.Launcher.ViewModel [RelayCommand] private async Task OpenResultAsync(string index) { + // Must check query results selected before executing the action + var queryResultsSelected = QueryResultsSelected(); var results = SelectedResults; if (index is not null) { @@ -530,7 +532,7 @@ namespace Flow.Launcher.ViewModel Hide(); } } - if (QueryResultsSelected()) + if (queryResultsSelected) { _userSelectedRecord.Add(result); _history.Add(result);