mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- - plugins: use hinticons for plugins in usermenu and pluginlist
This commit is contained in:
@@ -111,8 +111,7 @@ int CPluginList::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
for(int count = 0; count < nop; count++) {
|
||||
if ((g_PluginList->getType(count) & pluginlisttype) && !g_PluginList->isHidden(count) && (g_PluginList->getIntegration(count) == CPlugins::I_TYPE_DISABLED)) {
|
||||
CMenuForwarder *f = new CMenuForwarder(std::string(g_PluginList->getName(count)), true, "", this, to_string(count).c_str(), CRCInput::convertDigitToKey(shortcut++));
|
||||
//TODO: use hint-icons; header-icons are to small
|
||||
f->setHint("", g_PluginList->getDescription(count));
|
||||
f->setHint(g_PluginList->getHintIcon(count), g_PluginList->getDescription(count));
|
||||
m.addItem(f);
|
||||
}
|
||||
}
|
||||
|
@@ -317,7 +317,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
||||
//printf("[neutrino usermenu] plugin %d, set key %d...\n", count, g_PluginList->getKey(count));
|
||||
keyhelper.get(&key,&icon, d_key);
|
||||
menu_item = new CMenuForwarder(g_PluginList->getName(count), true, NULL, &plugins, id, key, icon);
|
||||
menu_item->setHint("", g_PluginList->getDescription(count));
|
||||
menu_item->setHint(g_PluginList->getHintIcon(count), g_PluginList->getDescription(count));
|
||||
|
||||
menu->addItem(menu_item, false);
|
||||
cnt++;
|
||||
|
Reference in New Issue
Block a user