Skip to content

Commit 89e430f

Browse files
authored
add comment
1 parent 7e3690f commit 89e430f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ public static PluginPair GetPluginForId(string id)
308308

309309
public static IEnumerable<PluginPair> GetPluginsForInterface<T>() where T : IFeatures
310310
{
311+
// Handle scenario where this is called before all plugins are instantiated, e.g. language change on startup
311312
return AllPlugins?.Where(p => p.Plugin is T) ?? Array.Empty<PluginPair>();
312313
}
313314

0 commit comments

Comments
 (0)