mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-03 14:52:11 +02:00
Merge pull request #4822 from mikeiit/fix_launcher_automatic_scaling
Hide launcher interface scaling spin box
This commit is contained in:
commit
7132ee560d
@ -838,9 +838,16 @@ void CSettingsView::on_sliderScalingCursor_valueChanged(int value)
|
|||||||
|
|
||||||
void CSettingsView::on_buttonScalingAuto_toggled(bool checked)
|
void CSettingsView::on_buttonScalingAuto_toggled(bool checked)
|
||||||
{
|
{
|
||||||
ui->spinBoxInterfaceScaling->setDisabled(checked);
|
if (checked)
|
||||||
ui->spinBoxInterfaceScaling->setValue(100);
|
{
|
||||||
|
ui->spinBoxInterfaceScaling->hide();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ui->spinBoxInterfaceScaling->show();
|
||||||
|
ui->spinBoxInterfaceScaling->setValue(100);
|
||||||
|
}
|
||||||
|
|
||||||
Settings node = settings.write["video"]["resolution"]["scaling"];
|
Settings node = settings.write["video"]["resolution"]["scaling"];
|
||||||
node->Integer() = checked ? 0 : 100;
|
node->Integer() = checked ? 0 : 100;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user