From fc147c3377b6ee279ff1ec557d5234325894ecd4 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Tue, 10 Mar 2026 12:00:28 +0800 Subject: [PATCH] Await async delegates fully in DispatcherHelper Ensure that async functions invoked via dispatcher are awaited until completion, not just until scheduled, by using double await on InvokeAsync. This prevents premature continuation when the delegate itself is asynchronous. --- Flow.Launcher.Core/Resource/DispatcherHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Core/Resource/DispatcherHelper.cs b/Flow.Launcher.Core/Resource/DispatcherHelper.cs index 5368d7677..70fb34f9c 100644 --- a/Flow.Launcher.Core/Resource/DispatcherHelper.cs +++ b/Flow.Launcher.Core/Resource/DispatcherHelper.cs @@ -95,7 +95,7 @@ public static class DispatcherHelper } else { - await dispatcher.InvokeAsync(func, priority); + await await dispatcher.InvokeAsync(func, priority); } } }