Initialize home query when window is loaded

This commit is contained in:
Jack251970 2025-05-03 17:02:39 +08:00
parent 17a0834bcd
commit 54994ddb7b
2 changed files with 11 additions and 0 deletions

View file

@ -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)

View file

@ -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())