Fix startup localization issues

This commit is contained in:
Yusyuriv 2024-08-10 09:23:47 +06:00
parent dd0ae98614
commit 81e5eaf10d
No known key found for this signature in database
GPG key ID: A91C52E6F73148E0
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,4 @@
using Flow.Launcher.Core.ExternalPlugins;
using Flow.Launcher.Core.ExternalPlugins;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
@ -308,7 +308,7 @@ namespace Flow.Launcher.Core.Plugin
public static IEnumerable<PluginPair> GetPluginsForInterface<T>() where T : IFeatures
{
return AllPlugins.Where(p => p.Plugin is T);
return AllPlugins?.Where(p => p.Plugin is T) ?? Array.Empty<PluginPair>();
}
public static List<Result> GetContextMenusForPlugin(Result result)

View file

@ -58,6 +58,7 @@ namespace Flow.Launcher.Core.Resource
private void LoadDefaultLanguage()
{
RemoveOldLanguageFiles();
LoadLanguage(AvailableLanguages.English);
_oldResources.Clear();
}