diff options
| author | 2023-03-17 22:03:36 -0600 | |
|---|---|---|
| committer | 2023-03-17 22:08:16 -0600 | |
| commit | c95baf92cef2222ca6f8f2f0976afd24ee3d3670 (patch) | |
| tree | b88cca93ea41314813216c767fea142871fe2194 | |
| parent | Merge pull request #9955 from liamwhite/color-blend-equation (diff) | |
| download | yuzu-c95baf92cef2222ca6f8f2f0976afd24ee3d3670.tar.gz yuzu-c95baf92cef2222ca6f8f2f0976afd24ee3d3670.tar.xz yuzu-c95baf92cef2222ca6f8f2f0976afd24ee3d3670.zip | |
config: Fix controller config from resetting
| -rw-r--r-- | src/yuzu/configuration/configure_input.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp index 1db374d4a..7fce85bca 100644 --- a/src/yuzu/configuration/configure_input.cpp +++ b/src/yuzu/configuration/configure_input.cpp | |||
| @@ -189,6 +189,8 @@ QList<QWidget*> ConfigureInput::GetSubTabs() const { | |||
| 189 | } | 189 | } |
| 190 | 190 | ||
| 191 | void ConfigureInput::ApplyConfiguration() { | 191 | void ConfigureInput::ApplyConfiguration() { |
| 192 | const bool was_global = Settings::values.players.UsingGlobal(); | ||
| 193 | Settings::values.players.SetGlobal(true); | ||
| 192 | for (auto* controller : player_controllers) { | 194 | for (auto* controller : player_controllers) { |
| 193 | controller->ApplyConfiguration(); | 195 | controller->ApplyConfiguration(); |
| 194 | } | 196 | } |
| @@ -201,6 +203,7 @@ void ConfigureInput::ApplyConfiguration() { | |||
| 201 | 203 | ||
| 202 | Settings::values.vibration_enabled.SetValue(ui->vibrationGroup->isChecked()); | 204 | Settings::values.vibration_enabled.SetValue(ui->vibrationGroup->isChecked()); |
| 203 | Settings::values.motion_enabled.SetValue(ui->motionGroup->isChecked()); | 205 | Settings::values.motion_enabled.SetValue(ui->motionGroup->isChecked()); |
| 206 | Settings::values.players.SetGlobal(was_global); | ||
| 204 | } | 207 | } |
| 205 | 208 | ||
| 206 | void ConfigureInput::changeEvent(QEvent* event) { | 209 | void ConfigureInput::changeEvent(QEvent* event) { |