From b93cb83c7cf38ff87d231d8f9b64808a702e2a3e Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 6 Nov 2014 12:30:30 +0100 Subject: [PATCH] - user_menue: fix hint icons for 'singe-added' plugins --- src/gui/user_menue.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/gui/user_menue.cpp b/src/gui/user_menue.cpp index 02ef4eaf2..8fd85a647 100644 --- a/src/gui/user_menue.cpp +++ b/src/gui/user_menue.cpp @@ -433,19 +433,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg) if (pname && (std::string(pname) == *it)) { keyhelper.get(&key,&icon); menu_item = new CMenuForwarder(g_PluginList->getName(count), true, NULL, this, pname, key, icon); - const std::string hint = 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); - } + menu_item->setHint(g_PluginList->getHintIcon(count), g_PluginList->getDescription(count)); break; } }