mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user