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)
670
670
public static bool IsInitializingOrInitFailed ( string id )
671
671
{
672
672
// 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 ;
674
674
675
675
// Plugin initialized already
676
676
if ( _allInitializedPlugins . ContainsKey ( id ) )
@@ -688,7 +688,7 @@ public static bool IsInitializingOrInitFailed(string id)
688
688
public static bool IsInitializing ( string id )
689
689
{
690
690
// 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 ;
692
692
693
693
// Plugin initialized already
694
694
if ( _allInitializedPlugins . ContainsKey ( id ) )
@@ -705,7 +705,7 @@ public static bool IsInitializing(string id)
705
705
public static bool IsInitializationFailed ( string id )
706
706
{
707
707
// 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 ;
709
709
710
710
// Plugin initialized already
711
711
if ( _allInitializedPlugins . ContainsKey ( id ) )
You can’t perform that action at this time.
0 commit comments