File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -670,7 +670,7 @@ public static bool IsHomePlugin(string id)
670670 public static bool IsInitializingOrInitFailed ( string id )
671671 {
672672 // Id does not exist in loaded plugins
673- if ( ! _allLoadedPlugins . Any ( x => x . Value . Metadata . ID == id ) ) return false ;
673+ if ( ! _allLoadedPlugins . ContainsKey ( id ) ) return false ;
674674
675675 // Plugin initialized already
676676 if ( _allInitializedPlugins . ContainsKey ( id ) )
@@ -688,7 +688,7 @@ public static bool IsInitializingOrInitFailed(string id)
688688 public static bool IsInitializing ( string id )
689689 {
690690 // Id does not exist in loaded plugins
691- if ( ! _allLoadedPlugins . Any ( x => x . Value . Metadata . ID == id ) ) return false ;
691+ if ( ! _allLoadedPlugins . ContainsKey ( id ) ) return false ;
692692
693693 // Plugin initialized already
694694 if ( _allInitializedPlugins . ContainsKey ( id ) )
@@ -705,7 +705,7 @@ public static bool IsInitializing(string id)
705705 public static bool IsInitializationFailed ( string id )
706706 {
707707 // Id does not exist in loaded plugins
708- if ( ! _allLoadedPlugins . Any ( x => x . Value . Metadata . ID == id ) ) return false ;
708+ if ( ! _allLoadedPlugins . ContainsKey ( id ) ) return false ;
709709
710710 // Plugin initialized already
711711 if ( _allInitializedPlugins . ContainsKey ( id ) )
You can’t perform that action at this time.
0 commit comments