luncher: delete the popup if there is already one

Otherwise we have two which are locking the bryce onto the screen
This commit is contained in:
Marcel Hollerbach 2016-12-02 16:58:29 +01:00
parent e42b072f38
commit a4a9a5a628
1 changed files with 3 additions and 0 deletions

View File

@ -741,6 +741,9 @@ _bar_icon_preview_show(void *data)
if (!eina_list_count(ic->execs) && !eina_list_count(ic->clients))
return EINA_FALSE;
if (ic->preview)
elm_popup_dismiss(ic->preview);
ic->preview = elm_ctxpopup_add(e_comp->elm);
elm_object_style_set(ic->preview, "noblock");
evas_object_size_hint_min_set(ic->preview, ic->inst->size, ic->inst->size);