user-menu: disable timeshift item if timeshift is already running

Origin commit data
------------------
Branch: ni/coolstream
Commit: c7e63adf7f
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-07-29 (Sun, 29 Jul 2018)

Origin message was:
------------------
- user-menu: disable timeshift item if timeshift is already running

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-07-29 01:26:23 +02:00
parent a9558bf15b
commit e0506d67c3

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());
bool timeshift = CMoviePlayerGui::getInstance().timeshift;
bool adzap_active = CAdZapMenu::getInstance()->isActive();
std::string itemstr_last("1");
@@ -296,7 +297,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
if (g_settings.recording_type == RECORDING_OFF)
break;
keyhelper.get(&key,&icon,CRCInput::RC_red);
menu_item = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT, true, NULL, CRecordManager::getInstance(), "Timeshift", key, icon);
menu_item = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT, !timeshift, NULL, CRecordManager::getInstance(), "Timeshift", key, icon);
// FIXME menu_item->setHint("", NONEXISTANT_LOCALE);
break;
}