From 13cfbe54306d5eabe76d4f0e3f89c979e69a5f11 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sun, 4 May 2025 09:07:14 +0800 Subject: [PATCH] Check query results --- Flow.Launcher/MainWindow.xaml.cs | 7 +------ Flow.Launcher/ViewModel/PluginViewModel.cs | 3 --- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 6dcd8d22d..e2948c540 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -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(); } diff --git a/Flow.Launcher/ViewModel/PluginViewModel.cs b/Flow.Launcher/ViewModel/PluginViewModel.cs index 61f6dea33..092896019 100644 --- a/Flow.Launcher/ViewModel/PluginViewModel.cs +++ b/Flow.Launcher/ViewModel/PluginViewModel.cs @@ -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 } }