mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
neutrino: sync keybind and usermenu code with neutrino-mp, code (C) martii
Origin commit data
------------------
Branch: ni/coolstream
Commit: 420af7a4dc
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-05 (Fri, 05 Sep 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -93,28 +93,6 @@ int CMiscMenue::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
else if(actionKey == "onekey_plugin")
|
||||
{
|
||||
CMenuWidget OneKeyPluginSelector(LOCALE_EXTRA_KEY_PLUGIN, NEUTRINO_ICON_FEATURES);
|
||||
OneKeyPluginSelector.addItem(GenericMenuSeparator);
|
||||
|
||||
char id[5];
|
||||
int cnt = 0;
|
||||
int enabled_count = 0;
|
||||
for(unsigned int count=0;count < (unsigned int) g_PluginList->getNumberOfPlugins();count++)
|
||||
{
|
||||
if (!g_PluginList->isHidden(count))
|
||||
{
|
||||
sprintf(id, "%d", count);
|
||||
enabled_count++;
|
||||
OneKeyPluginSelector.addItem(new CMenuForwarder(g_PluginList->getName(count), true, NULL, new COnekeyPluginChangeExec(), id, CRCInput::convertDigitToKey(count)), (cnt == 0));
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
|
||||
OneKeyPluginSelector.exec(NULL, "");
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
else if(actionKey == "movieplayer_plugin")
|
||||
{
|
||||
CMenuWidget MoviePluginSelector(LOCALE_MOVIEPLAYER_DEFPLUGIN, NEUTRINO_ICON_FEATURES);
|
||||
@@ -347,10 +325,6 @@ void CMiscMenue::showMiscSettingsMenuGeneral(CMenuWidget *ms_general)
|
||||
mf->setHint("", LOCALE_MENU_HINT_PLUGINS_HDD_DIR);
|
||||
ms_general->addItem(mf);
|
||||
|
||||
mf = new CMenuForwarder(LOCALE_EXTRA_KEY_PLUGIN, true, g_settings.onekey_plugin, this, "onekey_plugin");
|
||||
mf->setHint("", LOCALE_MENU_HINT_ONEKEY_PLUGIN);
|
||||
ms_general->addItem(mf);
|
||||
|
||||
mf = new CMenuForwarder(LOCALE_MPKEY_PLUGIN, true, g_settings.movieplayer_plugin, this, "movieplayer_plugin");
|
||||
mf->setHint("", LOCALE_MENU_HINT_MOVIEPLAYER_PLUGIN);
|
||||
ms_general->addItem(mf);
|
||||
|
Reference in New Issue
Block a user