From efc376713481ebe00613e008547ff46adcfc04b0 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 23 Feb 2022 21:22:56 -0500 Subject: [PATCH] Put dalamud options into their own group box --- src/settingswindow.cpp | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/settingswindow.cpp b/src/settingswindow.cpp index f19561f..467adfd 100644 --- a/src/settingswindow.cpp +++ b/src/settingswindow.cpp @@ -121,14 +121,6 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg }); loginBoxLayout->addRow("Encrypt Game Arguments", encryptArgumentsBox); - enableDalamudBox = new QCheckBox(); - connect(enableDalamudBox, &QCheckBox::stateChanged, [=](int) { - getCurrentProfile().enableDalamud = enableDalamudBox->isChecked(); - - this->core.saveSettings(); - }); - loginBoxLayout->addRow("Enable Dalamud Injection", enableDalamudBox); - serverType = new QComboBox(); serverType->insertItem(0, "Square Enix"); serverType->insertItem(1, "Sapphire"); @@ -178,7 +170,7 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg auto wineBoxLayout = new QFormLayout(); wineBox->setLayout(wineBoxLayout); - mainLayout->addWidget(wineBox, 1, 2, 2, 2); + mainLayout->addWidget(wineBox, 1, 2, 1, 1); winePathLabel = new QLabel(); winePathLabel->setWordWrap(true); @@ -295,6 +287,20 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg }); #endif + auto dalamudBox = new QGroupBox("Dalamud Options"); + auto dalamudBoxLayout = new QFormLayout(); + dalamudBox->setLayout(dalamudBoxLayout); + + enableDalamudBox = new QCheckBox(); + connect(enableDalamudBox, &QCheckBox::stateChanged, [=](int) { + getCurrentProfile().enableDalamud = enableDalamudBox->isChecked(); + + this->core.saveSettings(); + }); + dalamudBoxLayout->addRow("Enable Dalamud Injection", enableDalamudBox); + + mainLayout->addWidget(dalamudBox, 2, 2, 1, 1); + reloadControls(); }