forked from enlightenment/efl
elm: Fix disappearance of some elm images
After the commit 97c9fa64a4
(Remove group_show and group_hide),
some Efl.Ui.Image objects would not render properly. The reason
being that the object call to show() was aborted too early when
the image is still preloading.
This made for really random results as an image preload could
take more or less time, depending on chance.
This commit is contained in:
parent
a5ebf67a83
commit
a86e79141e
|
@ -598,9 +598,10 @@ static void
|
|||
_efl_ui_image_show(Eo *obj, Efl_Ui_Image_Data *sd)
|
||||
{
|
||||
sd->show = EINA_TRUE;
|
||||
if (sd->preload_status == EFL_UI_IMAGE_PRELOADING) return;
|
||||
|
||||
efl_gfx_visible_set(efl_super(obj, MY_CLASS), EINA_TRUE);
|
||||
|
||||
if (sd->preload_status == EFL_UI_IMAGE_PRELOADING) return;
|
||||
efl_gfx_visible_set(sd->img, EINA_TRUE);
|
||||
ELM_SAFE_FREE(sd->prev_img, evas_object_del);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue