diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index ae7b098a2..546f32cc5 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -292,6 +292,9 @@ namespace Flow.Launcher DependencyPropertyDescriptor .FromProperty(VisibilityProperty, typeof(StackPanel)) .AddValueChanged(History, (s, e) => UpdateClockPanelVisibility()); + + // Initialize query state + _viewModel.InitializeQuery(); } private async void OnClosing(object sender, CancelEventArgs e) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index b5afe4b7e..8244d5765 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1074,6 +1074,14 @@ namespace Flow.Launcher.ViewModel #region Query + public void InitializeQuery() + { + if (Settings.ShowHomeQuery) + { + _ = QueryResultsAsync(false); + } + } + public void Query(bool searchDelay, bool isReQuery = false) { if (QueryResultsSelected())