mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 04:57:44 +00:00
Put dalamud options into their own group box
This commit is contained in:
parent
6d37590356
commit
efc3767134
1 changed files with 15 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue