Fix button state not reset

This commit is contained in:
Benau 2021-05-22 11:00:59 +08:00
parent d407bb08e2
commit 8124079d6c

View File

@ -101,6 +101,7 @@ void OptionsScreenDevice::init()
// Only allow to enable or disable a gamepad, // Only allow to enable or disable a gamepad,
// as it is only in the list when connected // as it is only in the list when connected
delete_button->setActive(false); delete_button->setActive(false);
disable_toggle->setActive(true);
label = (m_config->isEnabled() label = (m_config->isEnabled()
? //I18N: button to disable a gamepad configuration ? //I18N: button to disable a gamepad configuration