forked from enlightenment/efl
list: Do not call unnecessary external API.
We already know the internals so make it optimized by using internal data.
This commit is contained in:
parent
ae324cfb36
commit
80f077cbec
|
@ -1062,7 +1062,7 @@ _elm_list_smart_on_focus(Eo *obj, void *_pd, va_list *list)
|
|||
else if (sd->last_selected_item)
|
||||
_elm_list_item_focused((Elm_List_Item *)sd->last_selected_item);
|
||||
else
|
||||
_elm_list_item_focused((Elm_List_Item *)elm_list_first_item_get(obj));
|
||||
_elm_list_item_focused((Elm_List_Item *)eina_list_data_get(sd->items));
|
||||
_elm_widget_focus_highlight_start(obj);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue