Closed hydra closed 6 years ago
for the record, using lv_obj_del(item)
on the list items works instead of lv_ovj_clean(list)
, but I don't want/need to keep a reference to each item (lv is already doing that for me...).
I'm feeling that the list API needs a lv_list_remove_all()
method.
Hi,
See: https://github.com/littlevgl/lvgl/issues/161
In summary: In dev-v5.2
there are functions (lv_..._clean()
) to clean the content of the objects where lv_obj_clean
is not working. So you should use lv_list_clean
for this purpose.
ok, I missed #161 when I did a search for other bug reports, sorry for duplicate.
No problem! :)
This code causes an infinite loop:
stackstrace:
the infinite loop in question is this:
https://github.com/littlevgl/lvgl/blob/master/lv_core/lv_obj.c#L1045-L1049
I encountered this issue when attempting to remove old and add new buttons to a list view object.
What I want to do this this:
then at any random time later on in the life of the program