mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
configure_input: Properly update UI components on removal of player
This commit is contained in:
parent
e58c951a59
commit
dd92db3fb0
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,8 @@ void ConfigureInput::updateUIEnabled() {
|
|||
bool hit_disabled = false;
|
||||
for (auto* player : players_controller) {
|
||||
player->setDisabled(hit_disabled);
|
||||
if (hit_disabled)
|
||||
player->setCurrentIndex(0);
|
||||
if (!hit_disabled && player->currentIndex() == 0)
|
||||
hit_disabled = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue