ui: don't allow menu to be added more than once

This enu handling is just temporary but shouldn't be buggy :)
This commit is contained in:
Andy Williams 2017-06-18 19:18:21 +01:00
parent a232dccaba
commit 6c714d19da
1 changed files with 4 additions and 0 deletions

View File

@ -1060,6 +1060,10 @@ _edi_menu_setup(Evas_Object *win)
{
Evas_Object *menu;
Elm_Object_Item *menu_it;
static Eina_Bool setup = EINA_FALSE;
if (setup) return;
setup = EINA_TRUE;
menu = elm_win_main_menu_get(win);