diff options
| author | 2018-11-10 17:09:33 -0500 | |
|---|---|---|
| committer | 2018-11-18 23:22:36 -0500 | |
| commit | dd92db3fb0038fea598250948aee7233777dc878 (patch) | |
| tree | 5287f060a661a8f9b33e5a426fcb04bc6443dca0 /src | |
| parent | configure_input: Make None a controller option instead of checkbox (diff) | |
| download | yuzu-dd92db3fb0038fea598250948aee7233777dc878.tar.gz yuzu-dd92db3fb0038fea598250948aee7233777dc878.tar.xz yuzu-dd92db3fb0038fea598250948aee7233777dc878.zip | |
configure_input: Properly update UI components on removal of player
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configure_input.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp index 25066d4d9..7ee572761 100644 --- a/src/yuzu/configuration/configure_input.cpp +++ b/src/yuzu/configuration/configure_input.cpp | |||
| @@ -149,6 +149,8 @@ void ConfigureInput::updateUIEnabled() { | |||
| 149 | bool hit_disabled = false; | 149 | bool hit_disabled = false; |
| 150 | for (auto* player : players_controller) { | 150 | for (auto* player : players_controller) { |
| 151 | player->setDisabled(hit_disabled); | 151 | player->setDisabled(hit_disabled); |
| 152 | if (hit_disabled) | ||
| 153 | player->setCurrentIndex(0); | ||
| 152 | if (!hit_disabled && player->currentIndex() == 0) | 154 | if (!hit_disabled && player->currentIndex() == 0) |
| 153 | hit_disabled = true; | 155 | hit_disabled = true; |
| 154 | } | 156 | } |