File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- using Flow . Launcher . Core . ExternalPlugins ;
1+ using Flow . Launcher . Core . ExternalPlugins ;
22using System ;
33using System . Collections . Concurrent ;
44using System . Collections . Generic ;
@@ -308,7 +308,7 @@ public static PluginPair GetPluginForId(string id)
308308
309309 public static IEnumerable < PluginPair > GetPluginsForInterface < T > ( ) where T : IFeatures
310310 {
311- return AllPlugins . Where ( p => p . Plugin is T ) ;
311+ return AllPlugins ? . Where ( p => p . Plugin is T ) ?? Array . Empty < PluginPair > ( ) ;
312312 }
313313
314314 public static List < Result > GetContextMenusForPlugin ( Result result )
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ internal void AddPluginLanguageDirectories(IEnumerable<PluginPair> plugins)
5858
5959 private void LoadDefaultLanguage ( )
6060 {
61+ RemoveOldLanguageFiles ( ) ;
6162 LoadLanguage ( AvailableLanguages . English ) ;
6263 _oldResources . Clear ( ) ;
6364 }
You can’t perform that action at this time.
0 commit comments