mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
Minor update
This commit is contained in:
parent
9bc84b606e
commit
2480c4eae7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user