Преглед изворни кода

Draft to hide scaling dropdown as needed

Mike пре 1 година
родитељ
комит
3690e05e40
2 измењених фајлова са 6 додато и 1 уклоњено
  1. 1 1
      CMakeLists.txt
  2. 5 0
      launcher/settingsView/csettingsview_moc.cpp

+ 1 - 1
CMakeLists.txt

@@ -41,7 +41,7 @@ endif()
 option(ENABLE_CLIENT "Enable compilation of game client" ON)
 option(ENABLE_ERM "Enable compilation of ERM scripting module" OFF)
 option(ENABLE_LUA "Enable compilation of LUA scripting module" OFF)
-option(ENABLE_TRANSLATIONS "Enable generation of translations for launcher and editor" ON)
+option(ENABLE_TRANSLATIONS "Enable generation of translations for launcher and editor" OFF)
 option(ENABLE_NULLKILLER_AI "Enable compilation of Nullkiller AI library" ON)
 option(ENABLE_MINIMAL_LIB "Build only core parts of vcmi library that are required for game lobby" OFF)
 option(ENABLE_GOLDMASTER "Build in public release mode in which some debug routines are disabled" OFF)

+ 5 - 0
launcher/settingsView/csettingsview_moc.cpp

@@ -838,6 +838,11 @@ 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);