mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
webtv_setup: allow to reload webtv xml files
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5fb5f94493
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-09 (Tue, 09 Aug 2016)
Origin message was:
------------------
- webtv_setup: allow to reload webtv xml files
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -60,10 +60,11 @@ const CMenuOptionChooser::keyval_ext LIVESTREAM_RESOLUTION_OPTIONS[] =
|
||||
};
|
||||
#define LIVESTREAM_RESOLUTION_OPTION_COUNT (sizeof(LIVESTREAM_RESOLUTION_OPTIONS)/sizeof(CMenuOptionChooser::keyval_ext))
|
||||
|
||||
#define CWebTVSetupFooterButtonCount 2
|
||||
#define CWebTVSetupFooterButtonCount 3 //NI
|
||||
static const struct button_label CWebTVSetupFooterButtons[CWebTVSetupFooterButtonCount] = {
|
||||
{ NEUTRINO_ICON_BUTTON_RED, LOCALE_WEBTV_XML_DEL },
|
||||
{ NEUTRINO_ICON_BUTTON_GREEN, LOCALE_WEBTV_XML_ADD }
|
||||
{ NEUTRINO_ICON_BUTTON_GREEN, LOCALE_WEBTV_XML_ADD },
|
||||
{ NEUTRINO_ICON_BUTTON_BLUE, LOCALE_WEBTV_XML_RELOAD } //NI
|
||||
};
|
||||
|
||||
int CWebTVSetup::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
@@ -110,6 +111,11 @@ int CWebTVSetup::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
}
|
||||
return res;
|
||||
}
|
||||
//NI
|
||||
if(actionKey == "r" /* reload */) {
|
||||
changed = true;
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
if (actionKey == "script_path") {
|
||||
const char *action_str = "ScriptPath";
|
||||
chooserDir(g_settings.livestreamScriptPath, false, action_str);
|
||||
@@ -131,6 +137,7 @@ int CWebTVSetup::Show()
|
||||
m = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_MOVIEPLAYER, width, MN_WIDGET_ID_WEBTVSETUP);
|
||||
m->addKey(CRCInput::RC_red, this, "d");
|
||||
m->addKey(CRCInput::RC_green, this, "a");
|
||||
m->addKey(CRCInput::RC_blue, this, "r"); //NI
|
||||
|
||||
m->addIntroItems(LOCALE_WEBTV_HEAD, LOCALE_LIVESTREAM_HEAD);
|
||||
|
||||
|
Reference in New Issue
Block a user