mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Merge pull request #4822 from mikeiit/fix_launcher_automatic_scaling
Hide launcher interface scaling spin box
This commit is contained in:
@ -838,8 +838,15 @@ 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;
|
||||||
|
Reference in New Issue
Block a user