|
@@ -839,13 +839,16 @@ void CSettingsView::on_sliderScalingCursor_valueChanged(int value)
|
|
|
void CSettingsView::on_buttonScalingAuto_toggled(bool checked)
|
|
|
{
|
|
|
if (checked)
|
|
|
+ {
|
|
|
ui->spinBoxInterfaceScaling->hide();
|
|
|
+ }
|
|
|
else
|
|
|
+ {
|
|
|
ui->spinBoxInterfaceScaling->show();
|
|
|
-
|
|
|
- ui->spinBoxInterfaceScaling->setDisabled(checked);
|
|
|
- ui->spinBoxInterfaceScaling->setValue(100);
|
|
|
-
|
|
|
+ ui->spinBoxInterfaceScaling->setDisabled(false);
|
|
|
+ ui->spinBoxInterfaceScaling->setValue(100);
|
|
|
+ }
|
|
|
+
|
|
|
Settings node = settings.write["video"]["resolution"]["scaling"];
|
|
|
node->Integer() = checked ? 0 : 100;
|
|
|
}
|