diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index b808e2a7f..70a9c9c0f 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -721,12 +721,12 @@ namespace Flow.Launcher.Core.Plugin #region Plugin Action Keyword + [Obsolete("This method is only used for old Flow compatibility.")] public static bool ActionKeywordRegistered(string actionKeyword) { - // this method is only checking for action keywords (defined as not '*') registration - // hence the actionKeyword != Query.GlobalPluginWildcardSign logic - return actionKeyword != Query.GlobalPluginWildcardSign - && _nonGlobalPlugins.ContainsKey(actionKeyword); + // Since now we support to assign one action keyword to multiple plugins, + // this check is unnecessary, so we will just return false here to ensure compatibility for old plugins. + return false; } /// diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs index 93844159f..b15aa844e 100644 --- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs +++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs @@ -293,6 +293,10 @@ namespace Flow.Launcher.Plugin /// /// The actionkeyword for checking /// True if the actionkeyword is already assigned, False otherwise + /// + /// Flow now supports to one action keyword to multiple plugins, + /// so this method is only used for old Flow compatibility. + /// bool ActionKeywordAssigned(string actionKeyword); ///