From 269d21a4c02202c2c48f8c96c579590474f9057d Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Mon, 21 Jul 2025 18:11:16 +0800 Subject: [PATCH] Change plugin modified logic --- Flow.Launcher.Core/Plugin/PluginManager.cs | 5 +---- Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index d5acfcb55..122542d23 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -738,10 +738,7 @@ namespace Flow.Launcher.Core.Plugin public static bool PluginModified(string 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); + return ModifiedPlugins.Contains(id); } public static async Task UpdatePluginAsync(PluginMetadata existingVersion, UserPlugin newVersion, string zipFilePath) diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs index 456341a71..269635d5e 100644 --- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs +++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs @@ -534,8 +534,7 @@ namespace Flow.Launcher.Plugin /// /// Check if the plugin has been modified. - /// If this plugin is initializing, it will be marked as modified. - /// Or if this plugin is updated, installed or uninstalled and users do not restart the app, + /// If this plugin is updated, installed or uninstalled and users do not restart the app, /// it will be marked as modified /// /// Plugin id