Check query results

This commit is contained in:
Jack251970 2025-05-04 09:07:14 +08:00
parent 96bb62af27
commit 13cfbe5430
2 changed files with 1 additions and 9 deletions

View file

@ -278,12 +278,7 @@ namespace Flow.Launcher
InitializeContextMenu();
break;
case nameof(Settings.ShowHomePage):
// We should refresh results when these two settings are changed but we cannot do that
// Because the order of the results will change, making the interface look weird
// So we would better refresh results when query text is changed next time
/*case nameof(Settings.ShowHistoryResultsForHomePage):
case nameof(Settings.MaxHistoryResultsToShowForHomePage):*/
if (string.IsNullOrEmpty(_viewModel.QueryText))
if (_viewModel.QueryResultsSelected() && string.IsNullOrEmpty(_viewModel.QueryText))
{
_viewModel.QueryResults();
}

View file

@ -82,9 +82,6 @@ namespace Flow.Launcher.ViewModel
{
PluginPair.Metadata.HomeDisabled = !value;
PluginSettingsObject.HomeDiabled = !value;
// We should refresh results when these two settings are changed but we cannot do that
// Because the order of the results will change, making the interface look weird
// So we would better refresh results when query text is changed next time
}
}