forked from enlightenment/edi
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:
parent
a232dccaba
commit
6c714d19da
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue