forked from ShuriZma/suyu
1
0
Fork 0

Merge pull request #2866 from Morph1984/checkbox_fix

configure_input: Uncheck "Joycons Docked" when "Use Docked Mode" is checked
This commit is contained in:
David 2019-09-21 19:58:22 +10:00 committed by GitHub
commit c41365a56f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -182,6 +182,8 @@ void ConfigureInput::UpdateUIEnabled() {
players_configure[i]->setEnabled(players_controller[i]->currentIndex() != 0);
}
ui->handheld_connected->setChecked(ui->handheld_connected->isChecked() &&
!ui->use_docked_mode->isChecked());
ui->handheld_connected->setEnabled(!ui->use_docked_mode->isChecked());
ui->handheld_configure->setEnabled(ui->handheld_connected->isChecked() &&
!ui->use_docked_mode->isChecked());