From 8171dc7253bb661a3e4aa33ba276df74be2e8093 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 26 Sep 2021 21:28:21 +0200 Subject: [PATCH] webchannels-setup: re-add inactive code around g_settings.livestreamScriptPath Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3f6718352e63069e8160d1a63576dcec0a281911 Author: vanhofen Date: 2021-09-26 (Sun, 26 Sep 2021) Origin message was: ------------------ - webchannels-setup: re-add inactive code around g_settings.livestreamScriptPath ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/webchannels_setup.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/gui/webchannels_setup.cpp b/src/gui/webchannels_setup.cpp index 0cb675279..5bd1a6cb3 100644 --- a/src/gui/webchannels_setup.cpp +++ b/src/gui/webchannels_setup.cpp @@ -201,6 +201,17 @@ int CWebChannelsSetup::Show() CMenuForwarder *mf; +#if 0 + bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) && + (!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty()); + + bool _mode_webradio = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio) && + (!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty()); + + mf = new CMenuForwarder(LOCALE_LIVESTREAM_SCRIPTPATH, !_mode_webtv || !_mode_webradio, g_settings.livestreamScriptPath, this, "script_path", CRCInput::convertDigitToKey(shortcut++)); + m->addItem(mf); +#endif + if (!webradio) { mf = new CMenuForwarder(LOCALE_LIVESTREAM_RESOLUTION, true, NULL, new CWebTVResolution(), NULL, CRCInput::convertDigitToKey(shortcut++));