Skip to content

Commit 81e5eaf

Browse files
committed
Fix startup localization issues
1 parent dd0ae98 commit 81e5eaf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Flow.Launcher.Core.ExternalPlugins;
1+
using Flow.Launcher.Core.ExternalPlugins;
22
using System;
33
using System.Collections.Concurrent;
44
using 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)

Flow.Launcher.Core/Resource/Internationalization.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)