mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Search in loaded plugins
This commit is contained in:
parent
6e0f2fc4ce
commit
6d99416641
1 changed files with 4 additions and 1 deletions
|
|
@ -505,11 +505,14 @@ namespace Flow.Launcher.Core.Plugin
|
|||
/// <summary>
|
||||
/// get specified plugin, return null if not found
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Plugin may not be initialized, so do not use its plugin model to execute any commands
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
public static PluginPair GetPluginForId(string id)
|
||||
{
|
||||
return GetAllInitializedPlugins().FirstOrDefault(o => o.Metadata.ID == id);
|
||||
return GetAllLoadedPlugins().FirstOrDefault(o => o.Metadata.ID == id);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Reference in a new issue