From 5f2921caa45dd03b041872a7e0da7109bbe9a897 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 26 May 2025 21:39:24 +1000 Subject: [PATCH] test --- Flow.Launcher/ViewModel/MainViewModel.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 48652f06358..a29eab7a81a 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -212,6 +212,12 @@ async Task UpdateActionAsync() await Task.Delay(20); while (channelReader.TryRead(out var item)) { + if (item.Token.IsCancellationRequested && item.shouldClearExistingResults) + { + App.API.LogDebug(ClassName, "BLAH- Token cancelled but results marked to clear"); + Results.Clear(); + } + if (!item.Token.IsCancellationRequested) queue[item.ID] = item; }