mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Expose initialized plugins via PublicAPI
This commit is contained in:
parent
66fb1d7c60
commit
9a20b0e0de
3 changed files with 15 additions and 3 deletions
|
|
@ -491,7 +491,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
return [.. _allLoadedPlugins];
|
||||
}
|
||||
|
||||
private static List<PluginPair> GetAllInitializedPlugins(bool includeFailed)
|
||||
public static List<PluginPair> GetAllInitializedPlugins(bool includeFailed)
|
||||
{
|
||||
if (includeFailed)
|
||||
{
|
||||
|
|
@ -504,7 +504,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
}
|
||||
}
|
||||
|
||||
public static List<PluginPair> GetGlobalPlugins()
|
||||
private static List<PluginPair> GetGlobalPlugins()
|
||||
{
|
||||
return [.. _globalPlugins.Values];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
|||
/// <returns></returns>
|
||||
List<PluginPair> GetAllPlugins();
|
||||
|
||||
/// <summary>
|
||||
/// Get all initialized plugins
|
||||
/// </summary>
|
||||
/// <param name="includeFailed">
|
||||
/// Whether to include plugins that failed to initialize
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
List<PluginPair> GetAllInitializedPlugins(bool includeFailed);
|
||||
|
||||
/// <summary>
|
||||
/// Registers a callback function for global keyboard events.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -249,6 +249,9 @@ namespace Flow.Launcher
|
|||
|
||||
public List<PluginPair> GetAllPlugins() => PluginManager.GetAllLoadedPlugins();
|
||||
|
||||
public List<PluginPair> GetAllInitializedPlugins(bool includeFailed) =>
|
||||
PluginManager.GetAllInitializedPlugins(includeFailed);
|
||||
|
||||
public MatchResult FuzzySearch(string query, string stringToCompare) =>
|
||||
StringMatcher.FuzzySearch(query, stringToCompare);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue