fix(style) rename path_cb to to path_xcb in lv_style_transition_dsc_t
This way the MicroPython won't allow manually setting this field. And it can't be set manually becasue the user data needs to be set too. So lv_style_transition_dsc_init() should be used to initialize the fields of lv_style_transition_dsc_t
This commit is contained in:
@@ -1009,7 +1009,7 @@ static void lv_obj_set_state(lv_obj_t * obj, lv_state_t new_state)
|
||||
if(t == tsi) {
|
||||
ts[tsi].time = tr->time;
|
||||
ts[tsi].delay = tr->delay;
|
||||
ts[tsi].path_cb = tr->path_cb;
|
||||
ts[tsi].path_cb = tr->path_xcb;
|
||||
ts[tsi].prop = tr->props[j];
|
||||
#if LV_USE_USER_DATA
|
||||
ts[tsi].user_data = tr->user_data;
|
||||
|
||||
Reference in New Issue
Block a user