mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Do not check if the language directory contains default language file
This commit is contained in:
parent
5e8acf7d74
commit
ac7da2d2d6
1 changed files with 2 additions and 10 deletions
|
|
@ -118,16 +118,8 @@ namespace Flow.Launcher.Core.Resource
|
|||
var pluginLanguageDir = Path.Combine(dir, Folder);
|
||||
if (!Directory.Exists(pluginLanguageDir)) continue;
|
||||
|
||||
// Check if the language directory contains default language file
|
||||
if (File.Exists(Path.Combine(pluginLanguageDir, DefaultFile)))
|
||||
{
|
||||
// Add the plugin language directory to the list
|
||||
_languageDirectories.Add(pluginLanguageDir);
|
||||
}
|
||||
else
|
||||
{
|
||||
API.LogError(ClassName, $"Can't find default language file in path <{pluginLanguageDir}>");
|
||||
}
|
||||
// Check if the language directory contains default language file since it will be checked later
|
||||
_languageDirectories.Add(pluginLanguageDir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue