1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Merge 6060d4d1f6bf3530ae9f4b14d72ce13e3b8b9652 into dev

This commit is contained in:
github-actions[bot] 2020-11-13 22:16:32 +00:00 committed by GitHub
commit d018558134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,12 +254,12 @@ 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) {
#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;
lv_obj_del(e);
return true;
}