mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(list): fix compiler error if LV_USE_GROUP = 0
This commit is contained in:
parent
20fef93fea
commit
54883792e1
@ -254,7 +254,9 @@ bool lv_list_remove(const lv_obj_t * list, uint16_t index)
|
||||
uint16_t count = 0;
|
||||
lv_obj_t * e = lv_list_get_next_btn(list, NULL);
|
||||
while(e != NULL) {
|
||||
#if LV_USE_GROUP
|
||||
if(e == ext->last_sel_btn) ext->last_sel_btn = NULL;
|
||||
#endif
|
||||
if(e == ext->act_sel_btn) ext->act_sel_btn = NULL;
|
||||
|
||||
if(count == index) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user