NOISSUE granular model updates for language model

This commit is contained in:
Petr Mrázek
2019-01-06 22:14:13 +01:00
parent ec2732ccd1
commit 4474d269cc
2 changed files with 87 additions and 31 deletions

View File

@ -237,7 +237,8 @@ void MultiMCPage::applySettings()
auto s = MMC->settings();
// Language
s->set("Language", ui->languageBox->itemData(ui->languageBox->currentIndex()).toString());
auto langCode = ui->languageBox->itemData(ui->languageBox->currentIndex()).toString();
s->set("Language", langCode.isEmpty() ? "en" : langCode);
if (ui->resetNotificationsBtn->isChecked())
{