Skip to content

Commit 6d99416

Browse files
committed
Search in loaded plugins
1 parent 6e0f2fc commit 6d99416

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,14 @@ public static void UpdatePluginMetadata(IReadOnlyList<Result> results, PluginMet
505505
/// <summary>
506506
/// get specified plugin, return null if not found
507507
/// </summary>
508+
/// <remarks>
509+
/// Plugin may not be initialized, so do not use its plugin model to execute any commands
510+
/// </remarks>
508511
/// <param name="id"></param>
509512
/// <returns></returns>
510513
public static PluginPair GetPluginForId(string id)
511514
{
512-
return GetAllInitializedPlugins().FirstOrDefault(o => o.Metadata.ID == id);
515+
return GetAllLoadedPlugins().FirstOrDefault(o => o.Metadata.ID == id);
513516
}
514517

515518
#endregion

0 commit comments

Comments
 (0)