mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +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;
|
||||
}
|
||||
|
||||
|
@@ -2243,11 +2243,9 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
|
||||
// eventlist
|
||||
if (g_settings.personalize[SNeutrinoSettings::P_MAIN_RED_BUTTON] == CPersonalizeGui::PERSONALIZE_ACTIVE_MODE_ENABLED)// EventList Menu - Personalization Check
|
||||
{
|
||||
InfoClock->enableInfoClock(false);
|
||||
StopSubtitles();
|
||||
usermenu.showUserMenu(SNeutrinoSettings::BUTTON_RED);
|
||||
StartSubtitles();
|
||||
InfoClock->enableInfoClock(true);
|
||||
}
|
||||
else
|
||||
ShowHintUTF(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_PERSONALIZE_MENUDISABLEDHINT),450, 10);
|
||||
|
Reference in New Issue
Block a user