mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
configure_input: Properly update UI components on removal of player
This commit is contained in:
parent
b131a4bbb2
commit
63d941fb6a
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,8 @@ void ConfigureInput::updateUIEnabled() {
|
||||||
bool hit_disabled = false;
|
bool hit_disabled = false;
|
||||||
for (auto* player : players_controller) {
|
for (auto* player : players_controller) {
|
||||||
player->setDisabled(hit_disabled);
|
player->setDisabled(hit_disabled);
|
||||||
|
if (hit_disabled)
|
||||||
|
player->setCurrentIndex(0);
|
||||||
if (!hit_disabled && player->currentIndex() == 0)
|
if (!hit_disabled && player->currentIndex() == 0)
|
||||||
hit_disabled = true;
|
hit_disabled = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue