disable_wizard.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. diff --git a/apps/launcher/CMakeLists.txt b/apps/launcher/CMakeLists.txt
  2. index bfc08a7..031f989 100644
  3. --- a/apps/launcher/CMakeLists.txt
  4. +++ b/apps/launcher/CMakeLists.txt
  5. @@ -119,4 +119,8 @@ if (BUILD_WITH_CODE_COVERAGE)
  6. target_link_libraries(openmw-launcher gcov)
  7. endif()
  8. -
  9. +if (BUILD_WIZARD)
  10. + add_definitions(-DBUILD_WIZARD_ENABLED=1)
  11. +else()
  12. + add_definitions(-DBUILD_WIZARD_ENABLED=0)
  13. +endif()
  14. diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp
  15. index 2982a30..4d286c7 100644
  16. --- a/apps/launcher/maindialog.cpp
  17. +++ b/apps/launcher/maindialog.cpp
  18. @@ -148,7 +148,7 @@ Launcher::FirstRunDialogResult Launcher::MainDialog::showFirstRunDialog()
  19. {
  20. if (!setupLauncherSettings())
  21. return FirstRunDialogResultFailure;
  22. -
  23. +if (BUILD_WIZARD_ENABLED) // parabola patch - disable wizard
  24. if (mLauncherSettings.value(QString("General/firstrun"), QString("true")) == QLatin1String("true"))
  25. {
  26. QMessageBox msgBox;
  27. @@ -385,7 +385,7 @@ bool Launcher::MainDialog::setupGameData()
  28. QAbstractButton *wizardButton =
  29. msgBox.addButton(tr("Run &Installation Wizard..."), QMessageBox::ActionRole);
  30. -
  31. +if (!BUILD_WIZARD_ENABLED) msgBox.removeButton(wizardButton) ; // parabola patch - disable wizard
  32. msgBox.exec();
  33. if (msgBox.clickedButton() == wizardButton)