mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 00:40:58 +01:00
config: Fix controller config from resetting
This commit is contained in:
parent
6d76a54d37
commit
c95baf92ce
1 changed files with 3 additions and 0 deletions
|
@ -189,6 +189,8 @@ QList<QWidget*> ConfigureInput::GetSubTabs() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureInput::ApplyConfiguration() {
|
void ConfigureInput::ApplyConfiguration() {
|
||||||
|
const bool was_global = Settings::values.players.UsingGlobal();
|
||||||
|
Settings::values.players.SetGlobal(true);
|
||||||
for (auto* controller : player_controllers) {
|
for (auto* controller : player_controllers) {
|
||||||
controller->ApplyConfiguration();
|
controller->ApplyConfiguration();
|
||||||
}
|
}
|
||||||
|
@ -201,6 +203,7 @@ void ConfigureInput::ApplyConfiguration() {
|
||||||
|
|
||||||
Settings::values.vibration_enabled.SetValue(ui->vibrationGroup->isChecked());
|
Settings::values.vibration_enabled.SetValue(ui->vibrationGroup->isChecked());
|
||||||
Settings::values.motion_enabled.SetValue(ui->motionGroup->isChecked());
|
Settings::values.motion_enabled.SetValue(ui->motionGroup->isChecked());
|
||||||
|
Settings::values.players.SetGlobal(was_global);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureInput::changeEvent(QEvent* event) {
|
void ConfigureInput::changeEvent(QEvent* event) {
|
||||||
|
|
Loading…
Reference in a new issue