forked from enlightenment/efl
Genlist: Fix for genlist item field update
Summary: Avoid unnecessary operations on unrealized item when item field update is called Test Plan: Call item_field_update on an unrealized item Reviewers: cedric, raster, SanghyeonLee Reviewed By: SanghyeonLee Subscribers: #reviewers, rajeev.jnnce, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9019
This commit is contained in:
parent
57dc7cec55
commit
ad78f2ccf4
|
@ -7418,6 +7418,13 @@ _elm_genlist_item_fields_update(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *it,
|
||||||
|
|
||||||
if (!it->item->block) return;
|
if (!it->item->block) return;
|
||||||
|
|
||||||
|
if (!it->realized)
|
||||||
|
{
|
||||||
|
if (!itf || (itf & ELM_GENLIST_ITEM_FIELD_CONTENT))
|
||||||
|
elm_genlist_item_update(eo_item);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((!itf) || (itf & ELM_GENLIST_ITEM_FIELD_TEXT))
|
if ((!itf) || (itf & ELM_GENLIST_ITEM_FIELD_TEXT))
|
||||||
{
|
{
|
||||||
_item_text_realize(it, VIEW(it), &it->texts, parts);
|
_item_text_realize(it, VIEW(it), &it->texts, parts);
|
||||||
|
|
Loading…
Reference in New Issue