Skip to content

Commit 13cfbe5

Browse files
committed
Check query results
1 parent 96bb62a commit 13cfbe5

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,7 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
278278
InitializeContextMenu();
279279
break;
280280
case nameof(Settings.ShowHomePage):
281-
// We should refresh results when these two settings are changed but we cannot do that
282-
// Because the order of the results will change, making the interface look weird
283-
// So we would better refresh results when query text is changed next time
284-
/*case nameof(Settings.ShowHistoryResultsForHomePage):
285-
case nameof(Settings.MaxHistoryResultsToShowForHomePage):*/
286-
if (string.IsNullOrEmpty(_viewModel.QueryText))
281+
if (_viewModel.QueryResultsSelected() && string.IsNullOrEmpty(_viewModel.QueryText))
287282
{
288283
_viewModel.QueryResults();
289284
}

Flow.Launcher/ViewModel/PluginViewModel.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ public bool PluginHomeState
8282
{
8383
PluginPair.Metadata.HomeDisabled = !value;
8484
PluginSettingsObject.HomeDiabled = !value;
85-
// We should refresh results when these two settings are changed but we cannot do that
86-
// Because the order of the results will change, making the interface look weird
87-
// So we would better refresh results when query text is changed next time
8885
}
8986
}
9087

0 commit comments

Comments
 (0)