mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-24 02:06:44 -05:00
Adding code to select the "System Default" language on first run.
* Fixes crash when `language` not present in config
This commit is contained in:
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user