We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb14fd commit 9d972e6Copy full SHA for 9d972e6
Flow.Launcher/ViewModel/MainViewModel.cs
@@ -220,7 +220,16 @@ async Task UpdateActionAsync()
220
var shouldClearExistingResults = ShouldClearExistingResultsForQuery(query, currentIsHomeQuery);
221
_lastQuery = item.Query;
222
_previousIsHomeQuery = currentIsHomeQuery;
223
- item.ShouldClearExistingResults = shouldClearExistingResults;
+
224
+ // If the queue already has the item, we need to pass the shouldClearExistingResults flag
225
+ if (queue.TryGetValue(item.ID, out var existingItem))
226
+ {
227
+ item.ShouldClearExistingResults = shouldClearExistingResults || existingItem.ShouldClearExistingResults;
228
+ }
229
+ else
230
231
+ item.ShouldClearExistingResults = shouldClearExistingResults;
232
233
234
queue[item.ID] = item;
235
}
0 commit comments