mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-23 15:56:59 +08:00
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:
committed by
Gabor Kiss-Vamosi
parent
f0a8eb8d1a
commit
7f456fc5f3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user