From 59e4fb82b97047bce46799d37d9df1e29e25a2b4 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 21 Jul 2025 17:49:24 +0800 Subject: [PATCH] Fix logic & Add code comments --- Flow.Launcher.Core/Plugin/PluginManager.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index 3ba89fce6..c69af2327 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -725,9 +725,10 @@ namespace Flow.Launcher.Core.Plugin public static bool PluginModified(string id) { - // We should consider initializing plugin as modified since it cannot be installed/uninstalled/updated and - // we cannot call any plugin methods - return ModifiedPlugins.Contains(id) && _allInitializedPlugins.ContainsKey(id); + return ModifiedPlugins.Contains(id) || + // We should consider initializing plugin as modified since it cannot be installed/uninstalled/updated and + // we cannot call any plugin methods + _allInitializedPlugins.ContainsKey(id); } public static async Task UpdatePluginAsync(PluginMetadata existingVersion, UserPlugin newVersion, string zipFilePath)