fix(msgbox): fix typo
This commit is contained in:
@@ -112,8 +112,8 @@ lv_obj_t * lv_msgbox_create(lv_obj_t * parent, const char * title, const char *
|
|||||||
|
|
||||||
mbox->content = lv_obj_class_create_obj(&lv_msgbox_content_class, obj);
|
mbox->content = lv_obj_class_create_obj(&lv_msgbox_content_class, obj);
|
||||||
LV_ASSERT_MALLOC(obj);
|
LV_ASSERT_MALLOC(obj);
|
||||||
if(obj == NULL) return NULL;
|
if(mbox->content == NULL) return NULL;
|
||||||
lv_obj_class_init_obj(obj);
|
lv_obj_class_init_obj(mbox->content);
|
||||||
|
|
||||||
bool has_txt = txt && lv_strlen(txt) > 0;
|
bool has_txt = txt && lv_strlen(txt) > 0;
|
||||||
if(has_txt) {
|
if(has_txt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user