Fixed bug about message screen.

This commit is contained in:
xiaojiazhu 2023-11-23 16:28:57 +08:00
parent f6816d00ea
commit 6510f272da

View File

@ -597,8 +597,11 @@ void message_box_confirm_msg_event_callback(lv_obj_t* obj, lv_event_t event)
{ {
/* reset pointer of msgbox */ /* reset pointer of msgbox */
msgbox = NULL; msgbox = NULL;
if (Confirm_label)
Confirm_label = NULL; {
lv_obj_del(Confirm_label);
Confirm_label = NULL;
}
/* parent is UIFlowMenuCommonConfirm */ /* parent is UIFlowMenuCommonConfirm */
lv_plugin_scr_close(lv_obj_get_parent(obj), NULL); lv_plugin_scr_close(lv_obj_get_parent(obj), NULL);