mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-08 22:26:51 +02:00
Minor update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user