mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Misc
This commit is contained in:
parent
86da8cbd17
commit
cd0d9052e8
@ -229,7 +229,7 @@ namespace Wox.Core.Plugin
|
||||
|
||||
public static IEnumerable<PluginPair> GetPlugins<T>() where T : IFeatures
|
||||
{
|
||||
return from p in AllPlugins where p.Plugin is T select p;
|
||||
return AllPlugins.Where(p => p.Plugin is T);
|
||||
}
|
||||
|
||||
private static PluginPair GetExclusivePlugin(Query query)
|
||||
|
@ -39,9 +39,9 @@ namespace Wox.Core.UI
|
||||
internal static void ApplyPluginLanguages()
|
||||
{
|
||||
RemoveResource(PluginManager.DirectoryName);
|
||||
foreach (var languageFile in (PluginManager.GetPlugins<IPluginI18n>().
|
||||
foreach (var languageFile in PluginManager.GetPlugins<IPluginI18n>().
|
||||
Select(plugin => InternationalizationManager.Instance.GetLanguageFile(((IPluginI18n)plugin.Plugin).GetLanguagesFolder())).
|
||||
Where(file => !string.IsNullOrEmpty(file))))
|
||||
Where(file => !string.IsNullOrEmpty(file)))
|
||||
{
|
||||
Application.Current.Resources.MergedDictionaries.Add(new ResourceDictionary
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user