Use BackToQueryResults for code quality

This commit is contained in:
Jack251970 2025-05-02 14:37:10 +08:00
parent 8bb96d7f58
commit 62e1252ac4

View file

@ -1170,7 +1170,7 @@ namespace Flow.Launcher.ViewModel
OriginQuery = new Query { RawQuery = h.Query },
Action = _ =>
{
SelectedResults = Results;
App.API.BackToQueryResults();
App.API.ChangeQuery(h.Query);
return false;
}
@ -1600,10 +1600,7 @@ namespace Flow.Launcher.ViewModel
await CloseExternalPreviewAsync();
}
if (!QueryResultsSelected())
{
SelectedResults = Results;
}
BackToQueryResults();
switch (Settings.LastQueryMode)
{