File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,14 @@ public static ICollection<PluginPair> ValidPluginsForQuery(Query query)
290290 return Array . Empty < PluginPair > ( ) ;
291291
292292 if ( ! NonGlobalPlugins . TryGetValue ( query . ActionKeyword , out var plugin ) )
293- return GlobalPlugins ;
293+ {
294+ return GlobalPlugins . Where ( p => ! PluginModified ( p . Metadata . ID ) ) . ToList ( ) ;
295+ }
296+
297+ if ( API . PluginModified ( plugin . Metadata . ID ) )
298+ {
299+ return Array . Empty < PluginPair > ( ) ;
300+ }
294301
295302 return new List < PluginPair >
296303 {
@@ -300,7 +307,7 @@ public static ICollection<PluginPair> ValidPluginsForQuery(Query query)
300307
301308 public static ICollection < PluginPair > ValidPluginsForHomeQuery ( )
302309 {
303- return _homePlugins . ToList ( ) ;
310+ return _homePlugins . Where ( p => ! PluginModified ( p . Metadata . ID ) ) . ToList ( ) ;
304311 }
305312
306313 public static async Task < List < Result > > QueryForPluginAsync ( PluginPair pair , Query query , CancellationToken token )
You can’t perform that action at this time.
0 commit comments