mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix hide window startup issue
This commit is contained in:
parent
fe62a03b4d
commit
3f0c142d3d
1 changed files with 6 additions and 2 deletions
|
|
@ -638,8 +638,13 @@ namespace Flow.Launcher.ViewModel
|
|||
/// </summary>
|
||||
private async Task ChangeQueryTextAsync(string queryText, bool isReQuery = false)
|
||||
{
|
||||
await Application.Current.Dispatcher.InvokeAsync(async () =>
|
||||
// Must check access so that we will not block the UI thread which cause window visibility issue
|
||||
if (!Application.Current.Dispatcher.CheckAccess())
|
||||
{
|
||||
await Application.Current.Dispatcher.InvokeAsync(() => ChangeQueryText(queryText, isReQuery));
|
||||
return;
|
||||
}
|
||||
|
||||
BackToQueryResults();
|
||||
|
||||
if (QueryText != queryText)
|
||||
|
|
@ -656,7 +661,6 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
|
||||
QueryTextCursorMovedToEnd = true;
|
||||
});
|
||||
}
|
||||
|
||||
public bool LastQuerySelected { get; set; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue