mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-18 03:21:27 +02:00
Merge pull request #3342 from Laserlicht/language_select_fix
[launcher] select first language
This commit is contained in:
commit
46cdbe4161
@ -136,14 +136,14 @@ void MainWindow::detectPreferredLanguage()
|
||||
for (auto const & vcmiLang : Languages::getLanguageList())
|
||||
if (vcmiLang.tagIETF == userLang.toStdString())
|
||||
selectedLanguage = vcmiLang.identifier;
|
||||
}
|
||||
|
||||
logGlobal->info("Selected language: %s", selectedLanguage);
|
||||
|
||||
if (!selectedLanguage.empty())
|
||||
{
|
||||
Settings node = settings.write["general"]["language"];
|
||||
node->String() = selectedLanguage;
|
||||
if (!selectedLanguage.empty())
|
||||
{
|
||||
logGlobal->info("Selected language: %s", selectedLanguage);
|
||||
Settings node = settings.write["general"]["language"];
|
||||
node->String() = selectedLanguage;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user