소스 검색

configure_input: Properly update UI components on removal of player

Zach Hilman 7 년 전
부모
커밋
dd92db3fb0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/yuzu/configuration/configure_input.cpp

+ 2 - 0
src/yuzu/configuration/configure_input.cpp

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