mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
mainmenu: use hw_caps instead of cs_get_revision
This commit is contained in:
@@ -126,11 +126,6 @@ void CNeutrinoApp::InitMenuMain()
|
||||
{
|
||||
dprintf(DEBUG_DEBUG, "init mainmenue\n");
|
||||
|
||||
unsigned int system_rev = cs_get_revision();
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
|
||||
system_rev = 8; // :-)
|
||||
#endif
|
||||
|
||||
// Dynamic renumbering
|
||||
personalize.setShortcut();
|
||||
|
||||
@@ -210,7 +205,7 @@ void CNeutrinoApp::InitMenuMain()
|
||||
personalize.addItem(MENU_MAIN, mf, &g_settings.personalize[SNeutrinoSettings::P_MAIN_REBOOT]);
|
||||
|
||||
//shutdown
|
||||
if(system_rev >= 8) {
|
||||
if (g_info.hw_caps->can_shutdown) {
|
||||
mf = new CMenuForwarder(LOCALE_MAINMENU_SHUTDOWN, true, NULL, this, "shutdown", CRCInput::RC_standby, NEUTRINO_ICON_BUTTON_POWER);
|
||||
mf->setHint(NEUTRINO_ICON_HINT_SHUTDOWN, LOCALE_MENU_HINT_SHUTDOWN);
|
||||
personalize.addItem(MENU_MAIN, mf, &g_settings.personalize[SNeutrinoSettings::P_MAIN_SHUTDOWN]);
|
||||
|
Reference in New Issue
Block a user