mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix an issue
This commit is contained in:
parent
8a2a71000e
commit
a7811f312c
1 changed files with 2 additions and 2 deletions
|
|
@ -98,15 +98,15 @@ namespace Flow.Launcher.ViewModel
|
|||
// it is not supposed to be false because it won't be complete
|
||||
while (await queueReader.WaitToReadAsync())
|
||||
{
|
||||
queue.Clear();
|
||||
await Task.Delay(20);
|
||||
await foreach (var item in queueReader.ReadAllAsync())
|
||||
while (queueReader.TryRead(out var item))
|
||||
{
|
||||
if (!item.Token.IsCancellationRequested)
|
||||
queue[item.ID] = item;
|
||||
}
|
||||
|
||||
UpdateResultView(queue.Values);
|
||||
queue.Clear();
|
||||
}
|
||||
|
||||
Log.Error("MainViewModel", "Unexpected ResultViewUpdate ends");
|
||||
|
|
|
|||
Loading…
Reference in a new issue