mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- user_menue: fix hint icons for 'singe-added' plugins
This commit is contained in:
@@ -433,19 +433,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
|||||||
if (pname && (std::string(pname) == *it)) {
|
if (pname && (std::string(pname) == *it)) {
|
||||||
keyhelper.get(&key,&icon);
|
keyhelper.get(&key,&icon);
|
||||||
menu_item = new CMenuForwarder(g_PluginList->getName(count), true, NULL, this, pname, key, icon);
|
menu_item = new CMenuForwarder(g_PluginList->getName(count), true, NULL, this, pname, key, icon);
|
||||||
const std::string hint = g_PluginList->getDescription(count);
|
menu_item->setHint(g_PluginList->getHintIcon(count), g_PluginList->getDescription(count));
|
||||||
if (hint != "") {
|
|
||||||
const char *hint_icon = NULL;
|
|
||||||
switch(g_PluginList->getType(count)) {
|
|
||||||
case CPlugins::P_TYPE_GAME:
|
|
||||||
hint_icon = NEUTRINO_ICON_HINT_GAMES;
|
|
||||||
break;
|
|
||||||
case CPlugins::P_TYPE_SCRIPT:
|
|
||||||
hint_icon = NEUTRINO_ICON_HINT_SCRIPTS;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
menu_item->setHint(hint_icon, hint);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user