mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-02 17:47:28 +08:00
fix(msg): notify objects even if they were subscribed durind an other notification
This commit is contained in:
@@ -75,7 +75,7 @@ void * lv_msg_subscribe(lv_msg_id_t msg_id, lv_msg_subscribe_cb_t cb, void * use
|
|||||||
s->msg_id = msg_id;
|
s->msg_id = msg_id;
|
||||||
s->callback = cb;
|
s->callback = cb;
|
||||||
s->user_data = user_data;
|
s->user_data = user_data;
|
||||||
s->_checked = 1; // if subsribed during `notify`, it won't be notified immediately
|
s->_checked = 0; /*if subsribed during `notify`, it should be notified immediately*/
|
||||||
restart_notify = true;
|
restart_notify = true;
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user