mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
feat: Allow setting language through the command line
This commit is contained in:
@@ -548,7 +548,6 @@ namespace hex {
|
||||
void enableSystemThemeDetection(bool enabled) {
|
||||
s_systemThemeDetection = enabled;
|
||||
|
||||
EventSettingsChanged::post();
|
||||
EventOSThemeChanged::post();
|
||||
}
|
||||
|
||||
|
||||
@@ -42,13 +42,13 @@ namespace hex {
|
||||
}
|
||||
|
||||
void loadLanguage(const std::string &language) {
|
||||
s_currStrings->clear();
|
||||
|
||||
auto &definitions = ContentRegistry::Language::impl::getLanguageDefinitions();
|
||||
|
||||
if (!definitions.contains(language))
|
||||
return;
|
||||
|
||||
s_currStrings->clear();
|
||||
|
||||
for (auto &definition : definitions[language])
|
||||
s_currStrings->insert(definition.getEntries().begin(), definition.getEntries().end());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user