fix(display): fix screen loading with zero time

This commit is contained in:
Gabor Kiss-Vamosi
2023-10-02 17:28:02 +02:00
parent f7c275dac5
commit 5c87cb6b1d

View File

@@ -513,7 +513,7 @@ void lv_scr_load_anim(lv_obj_t * new_scr, lv_scr_load_anim_t anim_type, uint32_t
/*If another screen load animation is in progress
*make target screen loaded immediately. */
if(d->scr_to_load) {
if(d->scr_to_load && act_scr != d->scr_to_load) {
scr_load_internal(d->scr_to_load);
lv_anim_del(d->scr_to_load, NULL);
lv_obj_set_pos(d->scr_to_load, 0, 0);