mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Do not need to clear the result when last and current query are home query
This commit is contained in:
parent
16404bc2a7
commit
36a4f41767
1 changed files with 6 additions and 1 deletions
|
|
@ -1544,8 +1544,13 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
private void RemoveOldQueryResults(Query query, bool isHomeQuery)
|
||||
{
|
||||
// If last and current query are home query, we don't need to clear the results
|
||||
if (_lastIsHomeQuery && isHomeQuery)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// If last or current query is home query, we need to clear the results
|
||||
if (_lastIsHomeQuery || isHomeQuery)
|
||||
else if (_lastIsHomeQuery || isHomeQuery)
|
||||
{
|
||||
App.API.LogDebug(ClassName, $"Remove old results");
|
||||
Results.Clear();
|
||||
|
|
|
|||
Loading…
Reference in a new issue