mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
Reset number of options when clearing static options
This commit is contained in:
parent
bcbcb6f31d
commit
d5ab09cf7f
@ -266,6 +266,7 @@ void lv_dropdown_add_option(lv_obj_t * ddlist, const char * option, uint16_t pos
|
||||
if(ext->static_txt != 0) {
|
||||
ext->options = NULL;
|
||||
ext->static_txt = 0;
|
||||
ext->option_cnt = 0;
|
||||
}
|
||||
|
||||
/*Allocate space for the new option*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user