mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
*neutrino usermenu plugin: fix plugin call
Plugin call was broken because of a merge error. add config parameter 'index' and 'key' for plugins This allows (optional) to config an user definied sort and setup rc-key for plugin via plugin.cfg. Sort by filename is still working as before in second instance. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1660 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -300,10 +300,12 @@ bool CUserMenu::showUserMenu(int button)
|
||||
sprintf(id, "%d", count);
|
||||
menu_items++;
|
||||
menu_prev = SNeutrinoSettings::ITEM_PLUGIN;
|
||||
//keyhelper.get(&key,&icon,CRCInput::RC_blue);
|
||||
keyhelper.get(&key,&icon);
|
||||
neutrino_msg_t d_key = g_PluginList->getKey(count);
|
||||
//printf("[neutrino usermenu] plugin %d, set key %d...\n", count, g_PluginList->getKey(count));
|
||||
StreamFeaturesChanger = new CStreamFeaturesChangeExec();
|
||||
keyhelper.get(&key,&icon, d_key);
|
||||
menu_item = new CMenuForwarderNonLocalized(g_PluginList->getName(count), true, NULL, StreamFeaturesChanger, id, key, icon);
|
||||
//menu->addItem(menu_item, (cnt == 0));
|
||||
|
||||
menu->addItem(menu_item, 0);
|
||||
cnt++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user