add comment

This commit is contained in:
Jeremy Wu 2024-08-11 20:56:03 +10:00 committed by GitHub
parent 7e3690f007
commit 89e430f41f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -308,6 +308,7 @@ namespace Flow.Launcher.Core.Plugin
public static IEnumerable<PluginPair> GetPluginsForInterface<T>() where T : IFeatures
{
// Handle scenario where this is called before all plugins are instantiated, e.g. language change on startup
return AllPlugins?.Where(p => p.Plugin is T) ?? Array.Empty<PluginPair>();
}