elm/genlist: trigger filter,done callback immediately if no filter queue exists

the documentation says this should trigger when filtering is done, and if
no filtering is pending then it is done

@fix

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10526
This commit is contained in:
Mike Blumenkrantz 2019-10-23 10:38:53 -04:00
parent b882209f8c
commit a84ff9def0
1 changed files with 5 additions and 3 deletions

View File

@ -8010,9 +8010,11 @@ _elm_genlist_filter_set(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, void *filter_
}
}
}
sd->queue_filter_enterer = ecore_idle_enterer_add(_item_filter_enterer,
sd->obj);
if (!sd->filter_queue)
efl_event_callback_legacy_call(sd->obj, ELM_GENLIST_EVENT_FILTER_DONE, NULL);
else
sd->queue_filter_enterer = ecore_idle_enterer_add(_item_filter_enterer,
sd->obj);
}
static Eina_Bool