diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index deb474219..71234eb18 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -491,7 +491,7 @@ namespace Flow.Launcher.Core.Plugin return [.. _allLoadedPlugins]; } - private static List GetAllInitializedPlugins(bool includeFailed) + public static List GetAllInitializedPlugins(bool includeFailed) { if (includeFailed) { @@ -504,7 +504,7 @@ namespace Flow.Launcher.Core.Plugin } } - public static List GetGlobalPlugins() + private static List GetGlobalPlugins() { return [.. _globalPlugins.Values]; } diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs index b25f04a7e..f156979c6 100644 --- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs +++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; @@ -179,6 +179,15 @@ namespace Flow.Launcher.Plugin /// List GetAllPlugins(); + /// + /// Get all initialized plugins + /// + /// + /// Whether to include plugins that failed to initialize + /// + /// + List GetAllInitializedPlugins(bool includeFailed); + /// /// Registers a callback function for global keyboard events. /// diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs index f1c2beefd..ff10d2d48 100644 --- a/Flow.Launcher/PublicAPIInstance.cs +++ b/Flow.Launcher/PublicAPIInstance.cs @@ -249,6 +249,9 @@ namespace Flow.Launcher public List GetAllPlugins() => PluginManager.GetAllLoadedPlugins(); + public List GetAllInitializedPlugins(bool includeFailed) => + PluginManager.GetAllInitializedPlugins(includeFailed); + public MatchResult FuzzySearch(string query, string stringToCompare) => StringMatcher.FuzzySearch(query, stringToCompare);