mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
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:
@@ -198,6 +198,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
|||||||
bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) &&
|
bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) &&
|
||||||
(!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty());
|
(!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty());
|
||||||
|
|
||||||
|
int rec_mode = (CRecordManager::getInstance()->GetRecordMode() & CRecordManager::RECMODE_REC);
|
||||||
bool timeshift = CMoviePlayerGui::getInstance().timeshift;
|
bool timeshift = CMoviePlayerGui::getInstance().timeshift;
|
||||||
bool adzap_active = CAdZapMenu::getInstance()->isActive();
|
bool adzap_active = CAdZapMenu::getInstance()->isActive();
|
||||||
|
|
||||||
@@ -437,7 +438,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
|||||||
case SNeutrinoSettings::ITEM_CAMD_RESET:
|
case SNeutrinoSettings::ITEM_CAMD_RESET:
|
||||||
{
|
{
|
||||||
keyhelper.get(&key,&icon);
|
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);
|
// FIXME menu_item->setHint("", NONEXISTANT_LOCALE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -439,8 +439,7 @@ void CNeutrinoApp::InitMenuService()
|
|||||||
|
|
||||||
mf = new CMenuForwarder(LOCALE_CAMD_CONTROL, true, NULL, new CCamdControlMenu(), NULL);
|
mf = new CMenuForwarder(LOCALE_CAMD_CONTROL, true, NULL, new CCamdControlMenu(), NULL);
|
||||||
mf->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_CAMD_CONTROL);
|
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);
|
personalize.addSeparator(MENU_SERVICE);
|
||||||
|
|
||||||
//restart neutrino
|
//restart neutrino
|
||||||
|
Reference in New Issue
Block a user