mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CUserMenu: using native callback to ensure paint for info clock after hide of this menu window
menu->hide() handler comes too early, nice to see if clock is transparent.
This commit is contained in:
@@ -163,6 +163,12 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
||||
if (menu == NULL)
|
||||
return true;
|
||||
|
||||
/*
|
||||
using native callback to ensure paint for info clock after hide of this menu window
|
||||
menu->hide() handler comes too early, nice to see if clock is transparent.
|
||||
*/
|
||||
menu->OnAfterHide.connect(sigc::mem_fun(CInfoClock::getInstance(), &CInfoClock::block));
|
||||
|
||||
if (button < COL_BUTTONMAX)
|
||||
menu->setSelected(user_menu[button].selected);
|
||||
|
||||
@@ -454,7 +460,6 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
||||
|
||||
extern CInfoClock *InfoClock;
|
||||
InfoClock->enableInfoClock(false);
|
||||
|
||||
// show menu if there are more than 2 items only
|
||||
// otherwise, we start the item directly (must be the last one)
|
||||
if (menu_items > 1 )
|
||||
|
Reference in New Issue
Block a user