Fix issue with inactive list buttons activating (#1436)

Fixed a problem where a button in inactive state was activated when another button was pressed in the list, and the list was in single mode
This commit is contained in:
scandermore
2020-04-09 13:01:52 +02:00
committed by Gabor Kiss-Vamosi
parent f0a8eb8d1a
commit 7f456fc5f3
+2 -1
View File
@@ -1007,7 +1007,8 @@ static void lv_list_btn_single_select(lv_obj_t * btn)
if(e == btn) {
lv_btn_set_state(e, LV_BTN_STATE_TGL_REL);
} else {
lv_btn_set_state(e, LV_BTN_STATE_REL);
if (lv_btn_get_state(e) != LV_BTN_STATE_INA)
lv_btn_set_state(e, LV_BTN_STATE_REL);
}
e = lv_list_get_next_btn(list, e);
} while(e != NULL);