use g_info.hw_caps->can_shutdown; mostly ported from neutrino-mp

Origin commit data
------------------
Branch: ni/coolstream
Commit: de1ee8b73a
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-19 (Sun, 19 Mar 2017)

Origin message was:
------------------
- use g_info.hw_caps->can_shutdown; mostly ported from neutrino-mp

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-03-19 23:50:52 +01:00
parent 02c9a3dec4
commit 514707f0c8
3 changed files with 11 additions and 10 deletions

View File

@@ -55,7 +55,6 @@
#include <zapit/femanager.h>
#include <eitd/sectionsd.h>
#include <cs_api.h>
#include <video.h>
#include <sectionsdclient/sectionsdclient.h>
@@ -245,7 +244,7 @@ int CMiscMenue::showMiscSettingsMenu()
misc_menue.addItem(mf);
//energy, shutdown
if(cs_get_revision() > 7)
if(g_info.hw_caps->can_shutdown)
{
mf = new CMenuForwarder(LOCALE_MISCSETTINGS_ENERGY, true, NULL, this, "energy", CRCInput::RC_green);
mf->setHint("", LOCALE_MENU_HINT_MISC_ENERGY);