From 52bb909f0bdd404376d510b498854688e0df94c8 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 21 Jul 2025 16:00:42 +0800 Subject: [PATCH] Add plugin to all plugin list later --- Flow.Launcher.Core/Plugin/PluginManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index 60e832f69..8e03171ca 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -244,9 +244,6 @@ namespace Flow.Launcher.Core.Plugin pair.Metadata.InitTime += milliseconds; API.LogInfo(ClassName, $"Total init cost for <{pair.Metadata.Name}> is <{pair.Metadata.InitTime}ms>"); - - // Add it in all plugin list - _allPlugins.TryAdd(pair.Metadata.ID, pair); } catch (Exception e) { @@ -312,6 +309,9 @@ namespace Flow.Launcher.Core.Plugin // Add plugin to Dialog Jump plugin list after the plugin is initialized DialogJump.InitializeDialogJumpPlugin(pair); + + // Add plugin to all plugin list + _allPlugins.TryAdd(pair.Metadata.ID, pair); })); await Task.WhenAll(InitTasks);