1
0
Fork 0
forked from suyu/suyu

configure_input: Properly update UI components on removal of player

This commit is contained in:
Zach Hilman 2018-11-10 17:09:33 -05:00
parent e58c951a59
commit dd92db3fb0

View file

@ -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;
}