elm_test: Also filter categories when typing in search bar

This commit is contained in:
Jean-Philippe Andre 2016-12-19 13:24:12 +09:00
parent 77a7d6d9e5
commit 6989642221
1 changed files with 3 additions and 1 deletions

View File

@ -391,7 +391,9 @@ _menu_create(const char *option_str)
_clear_menu();
EINA_LIST_FOREACH(tests, l, t)
{
if (option_str && !strcasestr(t->name, option_str)) continue;
if (option_str &&
!(strcasestr(t->name, option_str) || strcasestr(t->category, option_str)))
continue;
if ((!pcat) || (strcmp(pcat, t->category)))
{
if (t->frame)