mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Initialize home query when window is loaded
This commit is contained in:
parent
17a0834bcd
commit
54994ddb7b
2 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue