mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 04:07:46 +00:00
Properly propagate changes in certain fields that also appear in the launcher
* Notably, server type and save username/password fields
This commit is contained in:
parent
b9733b8316
commit
bb64bd5a72
1 changed files with 6 additions and 0 deletions
|
@ -90,6 +90,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window
|
||||||
|
|
||||||
connect(serverType, &QComboBox::currentIndexChanged, [=](int index) {
|
connect(serverType, &QComboBox::currentIndexChanged, [=](int index) {
|
||||||
getCurrentProfile().isSapphire = serverType->currentIndex() == 1;
|
getCurrentProfile().isSapphire = serverType->currentIndex() == 1;
|
||||||
|
|
||||||
|
this->window.reloadControls();
|
||||||
this->window.saveSettings();
|
this->window.saveSettings();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -102,6 +104,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window
|
||||||
rememberUsernameBox = new QCheckBox();
|
rememberUsernameBox = new QCheckBox();
|
||||||
connect(rememberUsernameBox, &QCheckBox::stateChanged, [=](int) {
|
connect(rememberUsernameBox, &QCheckBox::stateChanged, [=](int) {
|
||||||
getCurrentProfile().rememberUsername = rememberUsernameBox->isChecked();
|
getCurrentProfile().rememberUsername = rememberUsernameBox->isChecked();
|
||||||
|
|
||||||
|
this->window.reloadControls();
|
||||||
this->window.saveSettings();
|
this->window.saveSettings();
|
||||||
});
|
});
|
||||||
loginBoxLayout->addRow("Remember Username?", rememberUsernameBox);
|
loginBoxLayout->addRow("Remember Username?", rememberUsernameBox);
|
||||||
|
@ -109,6 +113,8 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, QWidget* parent) : window
|
||||||
rememberPasswordBox = new QCheckBox();
|
rememberPasswordBox = new QCheckBox();
|
||||||
connect(rememberPasswordBox, &QCheckBox::stateChanged, [=](int) {
|
connect(rememberPasswordBox, &QCheckBox::stateChanged, [=](int) {
|
||||||
getCurrentProfile().rememberPassword = rememberPasswordBox->isChecked();
|
getCurrentProfile().rememberPassword = rememberPasswordBox->isChecked();
|
||||||
|
|
||||||
|
this->window.reloadControls();
|
||||||
this->window.saveSettings();
|
this->window.saveSettings();
|
||||||
});
|
});
|
||||||
loginBoxLayout->addRow("Remember Password?", rememberPasswordBox);
|
loginBoxLayout->addRow("Remember Password?", rememberPasswordBox);
|
||||||
|
|
Loading…
Add table
Reference in a new issue