mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Disable infoclock when user menu activ
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
#include "dboxinfo.h"
|
||||
#include "cam_menu.h"
|
||||
#include "pluginlist.h"
|
||||
#include "infoclock.h"
|
||||
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
@@ -69,6 +70,7 @@
|
||||
extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */
|
||||
// extern CPlugins * g_PluginList;
|
||||
extern CCAMMenuHandler * g_CamHandler;
|
||||
extern CInfoClock * InfoClock;
|
||||
//
|
||||
#include <system/debug.h>
|
||||
|
||||
@@ -85,6 +87,8 @@ CUserMenu::~CUserMenu()
|
||||
// USERMENU
|
||||
bool CUserMenu::showUserMenu(int button)
|
||||
{
|
||||
InfoClock->enableInfoClock(false);
|
||||
|
||||
// set width
|
||||
width = w_max (40, 10);
|
||||
|
||||
@@ -427,6 +431,9 @@ bool CUserMenu::showUserMenu(int button)
|
||||
if (games) delete games;
|
||||
if (scripts) delete scripts;
|
||||
if (menu) delete menu;
|
||||
|
||||
InfoClock->enableInfoClock(true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user