mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
user-menu: disable timeshift item if timeshift is already running
Origin commit data
------------------
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
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());
|
||||||
|
|
||||||
|
bool timeshift = CMoviePlayerGui::getInstance().timeshift;
|
||||||
bool adzap_active = CAdZapMenu::getInstance()->isActive();
|
bool adzap_active = CAdZapMenu::getInstance()->isActive();
|
||||||
|
|
||||||
std::string itemstr_last("1");
|
std::string itemstr_last("1");
|
||||||
@@ -296,7 +297,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
|||||||
if (g_settings.recording_type == RECORDING_OFF)
|
if (g_settings.recording_type == RECORDING_OFF)
|
||||||
break;
|
break;
|
||||||
keyhelper.get(&key,&icon,CRCInput::RC_red);
|
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);
|
// FIXME menu_item->setHint("", NONEXISTANT_LOCALE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user