Commit 705561cc authored by Ludovic Fauvet's avatar Ludovic Fauvet

audio view: close overflow menu if already open

parent 153931e0
......@@ -177,8 +177,16 @@ audio_view_callback(view_sys *p_view_sys, interface_view_event event)
switch (event) {
case INTERFACE_VIEW_EVENT_MENU:
{
p_view_sys->p_overflow_menu = popup_menu_add(audio_view_popup_menu, p_view_sys, p_view_sys->nf_toolbar);
evas_object_show(p_view_sys->p_overflow_menu);
if (p_view_sys->p_overflow_menu)
{
evas_object_del(p_view_sys->p_overflow_menu);
p_view_sys->p_overflow_menu = NULL;
}
else
{
p_view_sys->p_overflow_menu = popup_menu_add(audio_view_popup_menu, p_view_sys, p_view_sys->nf_toolbar);
evas_object_show(p_view_sys->p_overflow_menu);
}
return true;
}
case INTERFACE_VIEW_EVENT_BACK:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment