From 6e0f2fc4ced1830e593e6c44fa3251881dfe4931 Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Mon, 21 Jul 2025 17:03:21 +0800
Subject: [PATCH] Return loaded plugins
---
Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs | 5 ++++-
Flow.Launcher/PublicAPIInstance.cs | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
index 4cefe4bc6..269635d5e 100644
--- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
+++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
@@ -171,8 +171,11 @@ namespace Flow.Launcher.Plugin
string GetTranslation(string key);
///
- /// Get all initialized plugins
+ /// Get all loaded plugins
///
+ ///
+ /// Part of plugins may not be initialized yet
+ ///
///
List GetAllPlugins();
diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs
index bae953bbc..69ca0c01d 100644
--- a/Flow.Launcher/PublicAPIInstance.cs
+++ b/Flow.Launcher/PublicAPIInstance.cs
@@ -251,7 +251,7 @@ namespace Flow.Launcher
public string GetTranslation(string key) => Internationalization.GetTranslation(key);
- public List GetAllPlugins() => PluginManager.GetAllInitializedPlugins();
+ public List GetAllPlugins() => PluginManager.GetAllLoadedPlugins();
public MatchResult FuzzySearch(string query, string stringToCompare) =>
StringMatcher.FuzzySearch(query, stringToCompare);