Summary:
when elm_image_preload_disabled_set(img, EINA_TRUE) is called before file set.
The image preload is not canceled, because the function will be returned since the image is not loaded.
so preload disabled api is fixed to work even if it is called before file set.
@fix
Reviewers: Hermet, kimcinoo, jsuya
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D11969
Change-Id: I72e559314dbe494bbcf1dddf91f309ff8772780c
EFL_UI_IMAGE_CHECK(obj);
EFL_UI_IMAGE_DATA_GET(obj, sd);
- if (sd->edje || !sd->img) return;
+ if (sd->edje) return;
+ if (!sd->img)
+ {
+ if (disable) sd->preload_status = EFL_UI_IMAGE_PRELOAD_DISABLED;
+ return;
+ }
if (disable)
{