1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(msg): notify objects even if they were subscribed durind an other notification

This commit is contained in:
Gabor Kiss-Vamosi 2022-12-20 14:03:16 +01:00
parent 76318ba2e2
commit cc1d6c46bc

View File

@ -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->callback = cb;
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;
return s;
}