Adds a setting for automatically showing LED view
This commit is contained in:
parent
ab7e281c1c
commit
1368f83d77
5 changed files with 207 additions and 156 deletions
|
|
@ -149,6 +149,15 @@ OpenRGBSettingsPage::OpenRGBSettingsPage(QWidget *parent) :
|
|||
ui->CheckboxDisableKeyExpansion->setChecked(false);
|
||||
}
|
||||
|
||||
if(ui_settings.contains("show_led_view"))
|
||||
{
|
||||
ui->CheckboxShowLEDView->setChecked(ui_settings["show_led_view"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->CheckboxShowLEDView->setChecked(false);
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------*\
|
||||
| Load LogManager settings |
|
||||
\*---------------------------------------------------------*/
|
||||
|
|
@ -823,3 +832,11 @@ void Ui::OpenRGBSettingsPage::on_CheckboxDisableKeyExpansion_clicked()
|
|||
ResourceManager::get()->GetSettingsManager()->SetSettings("UserInterface", ui_settings);
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
void Ui::OpenRGBSettingsPage::on_CheckboxShowLEDView_clicked()
|
||||
{
|
||||
json ui_settings = ResourceManager::get()->GetSettingsManager()->GetSettings("UserInterface");
|
||||
ui_settings["show_led_view"] = ui->CheckboxShowLEDView->isChecked();
|
||||
ResourceManager::get()->GetSettingsManager()->SetSettings("UserInterface", ui_settings);
|
||||
SaveSettings();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue