mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
fix compile with test menu
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@831 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -750,6 +750,7 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings
|
|||||||
CMenuWidget &keySettings, CMenuWidget &languageSettings, CMenuWidget &miscSettings,
|
CMenuWidget &keySettings, CMenuWidget &languageSettings, CMenuWidget &miscSettings,
|
||||||
CMenuWidget &service, CMenuWidget &/*fontSettings*/, CMenuWidget &audiopl_picSettings, CMenuWidget &/*streamingSettings*/, CMenuWidget &moviePlayer)
|
CMenuWidget &service, CMenuWidget &/*fontSettings*/, CMenuWidget &audiopl_picSettings, CMenuWidget &/*streamingSettings*/, CMenuWidget &moviePlayer)
|
||||||
{
|
{
|
||||||
|
unsigned int system_rev = cs_get_revision();
|
||||||
|
|
||||||
#ifdef TEST_MENU
|
#ifdef TEST_MENU
|
||||||
char rev[255];
|
char rev[255];
|
||||||
@@ -842,7 +843,6 @@ void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu, CMenuWidget &mainSettings
|
|||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_REBOOT, true, NULL, this, "reboot",
|
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_REBOOT, true, NULL, this, "reboot",
|
||||||
CRCInput::convertDigitToKey(shortcut++)));
|
CRCInput::convertDigitToKey(shortcut++)));
|
||||||
|
|
||||||
unsigned int system_rev = cs_get_revision();
|
|
||||||
if(system_rev >= 8)
|
if(system_rev >= 8)
|
||||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_SHUTDOWN, true, NULL, this, "shutdown", CRCInput::RC_standby, NEUTRINO_ICON_BUTTON_POWER));
|
mainMenu.addItem(new CMenuForwarder(LOCALE_MAINMENU_SHUTDOWN, true, NULL, this, "shutdown", CRCInput::RC_standby, NEUTRINO_ICON_BUTTON_POWER));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user