neutrino: disable some items in record mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: e60350ce2b
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-08-02 (Thu, 02 Aug 2018)

Origin message was:
------------------
- neutrino: disable some items in record mode

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-08-02 21:39:17 +02:00
parent ac9f00f0d3
commit a7f98d2808
2 changed files with 3 additions and 3 deletions

View File

@@ -198,6 +198,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) &&
(!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty());
int rec_mode = (CRecordManager::getInstance()->GetRecordMode() & CRecordManager::RECMODE_REC);
bool timeshift = CMoviePlayerGui::getInstance().timeshift;
bool adzap_active = CAdZapMenu::getInstance()->isActive();
@@ -437,7 +438,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
case SNeutrinoSettings::ITEM_CAMD_RESET:
{
keyhelper.get(&key,&icon);
menu_item = new CMenuForwarder(LOCALE_CAMD_RESET, true, NULL, neutrino, "camd_reset", key, icon);
menu_item = new CMenuForwarder(LOCALE_CAMD_RESET, !rec_mode, NULL, neutrino, "camd_reset", key, icon);
// FIXME menu_item->setHint("", NONEXISTANT_LOCALE);
break;
}

View File

@@ -439,8 +439,7 @@ void CNeutrinoApp::InitMenuService()
mf = new CMenuForwarder(LOCALE_CAMD_CONTROL, true, NULL, new CCamdControlMenu(), NULL);
mf->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_CAMD_CONTROL);
personalize.addItem(MENU_SERVICE, mf, &g_settings.personalize[SNeutrinoSettings::P_MSER_CAMD_CONTROL]);
personalize.addItem(MENU_SERVICE, mf, &g_settings.personalize[SNeutrinoSettings::P_MSER_CAMD_CONTROL], false, CPersonalizeGui::PERSONALIZE_SHOW_AS_ITEM_OPTION, NULL, DCOND_MODE_REC);
personalize.addSeparator(MENU_SERVICE);
//restart neutrino