mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix an error
This commit is contained in:
parent
10f3bcb209
commit
3bdc82a47f
1 changed files with 2 additions and 2 deletions
|
|
@ -226,7 +226,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
|
||||
public static List<Result> GetContextMenusForPlugin(Result result)
|
||||
{
|
||||
List<Result> results;
|
||||
var results = new List<Result>();
|
||||
var pluginPair = _contextMenuPlugins.FirstOrDefault(o => o.Metadata.ID == result.PluginID);
|
||||
if (pluginPair != null)
|
||||
{
|
||||
|
|
@ -234,7 +234,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
|
||||
try
|
||||
{
|
||||
results = plugin.LoadContextMenus(result) ?? new List<Result>();
|
||||
results = plugin.LoadContextMenus(result) ?? results;
|
||||
foreach (var r in results)
|
||||
{
|
||||
r.PluginDirectory = pluginPair.Metadata.PluginDirectory;
|
||||
|
|
|
|||
Loading…
Reference in a new issue