e lang wiz - add sys default as first item properly...

This commit is contained in:
Carsten Haitzler 2020-04-21 16:02:45 +01:00
parent d0b2f3db0c
commit c714fb8b61
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ wizard_page_show(E_Wizard_Page *pg EINA_UNUSED)
found = 1;
elm_genlist_item_append(ob, &itc, pair, NULL, 0, _lang_select, pair);
}
if (!found)
if (found)
elm_genlist_item_prepend(ob, &itc, NULL, NULL, 0, _lang_select, NULL);
if ((!found) && (elm_genlist_items_count(ob) == 2)) // default and one other
elm_genlist_item_selected_set(elm_genlist_last_item_get(ob), 1);