Adding code to select the "System Default" language on first run.
* Fixes crash when `language` not present in config
This commit is contained in:
parent
0e96effc94
commit
cdfaaceb7d
1 changed files with 7 additions and 0 deletions
|
|
@ -89,6 +89,13 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) :
|
|||
ui->ComboBoxLanguage->setCurrentIndex(language_index);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ui_settings["language"] = "default";
|
||||
ResourceManager::get()->GetSettingsManager()->SetSettings("UserInterface",ui_settings);
|
||||
SaveSettings();
|
||||
ui->ComboBoxLanguage->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
if(ui_settings.contains("greyscale_tray_icon"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue