Browse Source

Minor update

Mike 1 năm trước cách đây
mục cha
commit
2480c4eae7
1 tập tin đã thay đổi với 7 bổ sung4 xóa
  1. 7 4
      launcher/settingsView/csettingsview_moc.cpp

+ 7 - 4
launcher/settingsView/csettingsview_moc.cpp

@@ -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;
 }