mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Don't update collection when both newItems and collection is empty
This commit is contained in:
parent
6267fa9a50
commit
c3d5d4c0ce
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ namespace Flow.Launcher.ViewModel
|
||||||
public void Update(List<ResultViewModel> newItems, CancellationToken token = default)
|
public void Update(List<ResultViewModel> newItems, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
_token = token;
|
_token = token;
|
||||||
if (_token.IsCancellationRequested)
|
if (Count == 0 && newItems.Count == 0 || _token.IsCancellationRequested)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (editTime < 5 || newItems.Count < 30)
|
if (editTime < 5 || newItems.Count < 30)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue