Skip to content

Commit 3436ac9

Browse files
committed
Adjust check position
1 parent c8989c3 commit 3436ac9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,13 @@ private async Task BuildQueryAsync(IEnumerable<BaseBuiltinShortcutModel> builtIn
15791579
/// <returns>True if the existing results should be cleared, false otherwise.</returns>
15801580
private bool ShouldClearExistingResults(Query query, bool currentIsHomeQuery)
15811581
{
1582+
// If the results are not cleared temporarily, we need to clear this time
1583+
if (_needClearResults)
1584+
{
1585+
_needClearResults = false;
1586+
return true;
1587+
}
1588+
15821589
// If previous or current results are from home query, we need to clear them
15831590
if (_previousIsHomeQuery || currentIsHomeQuery)
15841591
{
@@ -1593,13 +1600,6 @@ private bool ShouldClearExistingResults(Query query, bool currentIsHomeQuery)
15931600
return true;
15941601
}
15951602

1596-
// If the results are not cleared temporarily, we need to clear this time
1597-
if (_needClearResults)
1598-
{
1599-
_needClearResults = false;
1600-
return true;
1601-
}
1602-
16031603
return false;
16041604
}
16051605

0 commit comments

Comments
 (0)