From 9221435bad450eede47ab030b5d96024b5b8ba27 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Tue, 12 Aug 2025 18:07:10 +0800 Subject: [PATCH] Remove plugin from _allLoadedPlugins when one plugin is uninstalled --- Flow.Launcher.Core/Plugin/PluginManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index ac104c011..d13e4c3b0 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -914,6 +914,9 @@ namespace Flow.Launcher.Core.Plugin string.Format(API.GetTranslation("failedToRemovePluginCacheMessage"), plugin.Name)); } Settings.RemovePluginSettings(plugin.ID); + { + _allLoadedPlugins.RemoveAll(p => p.Metadata.ID == plugin.ID); + } { _allInitializedPlugins.TryRemove(plugin.ID, out var _); }