From 446c61fac6fe71e4f9ef4d424153eae7d7860456 Mon Sep 17 00:00:00 2001 From: Jack Ye <1160210343@qq.com> Date: Thu, 3 Jul 2025 21:01:09 +0800 Subject: [PATCH] Use concurrent bag for multiple thread support Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Flow.Launcher.Core/Plugin/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index 6f05df1a1..19694986d 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -33,7 +33,7 @@ namespace Flow.Launcher.Core.Plugin private static IPublicAPI API => api ??= Ioc.Default.GetRequiredService(); private static PluginsSettings Settings; - private static readonly List ModifiedPlugins = new(); + private static readonly ConcurrentBag ModifiedPlugins = new(); private static IEnumerable _contextMenuPlugins; private static IEnumerable _homePlugins;