File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -226,15 +226,15 @@ public static IEnumerable<PluginPair> GetPluginsForInterface<T>() where T : IFea
226
226
227
227
public static List < Result > GetContextMenusForPlugin ( Result result )
228
228
{
229
- List < Result > results ;
229
+ var results = new List < Result > ( ) ;
230
230
var pluginPair = _contextMenuPlugins . FirstOrDefault ( o => o . Metadata . ID == result . PluginID ) ;
231
231
if ( pluginPair != null )
232
232
{
233
233
var plugin = ( IContextMenu ) pluginPair . Plugin ;
234
234
235
235
try
236
236
{
237
- results = plugin . LoadContextMenus ( result ) ?? new List < Result > ( ) ;
237
+ results = plugin . LoadContextMenus ( result ) ?? results ;
238
238
foreach ( var r in results )
239
239
{
240
240
r . PluginDirectory = pluginPair . Metadata . PluginDirectory ;
You can’t perform that action at this time.
0 commit comments