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(); }