plugins: don't show integrated plugins in usermenu

Origin commit data
------------------
Commit: c166fc28af
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-09-30 (Tue, 30 Sep 2014)

Origin message was:
------------------
- plugins: don't show integrated plugins in usermenu
This commit is contained in:
vanhofen
2014-09-30 12:24:59 +02:00
committed by [CST] Focus
parent 66414bb5cf
commit 681bb74d8d
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ int CPluginList::exec(CMenuTarget* parent, const std::string &actionKey)
int shortcut = 1;
for(int count = 0; count < nop; count++) {
if ((g_PluginList->getType(count) & pluginlisttype) && !g_PluginList->isHidden(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));

View File

@@ -309,7 +309,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
if (g_settings.personalize[SNeutrinoSettings::P_UMENU_PLUGIN_TYPE_LUA])
show = show || g_PluginList->getType(count) == CPlugins::P_TYPE_LUA;
if (show && !g_PluginList->isHidden(count))
if (show && !g_PluginList->isHidden(count) && (g_PluginList->getIntegration(count) == CPlugins::I_TYPE_DISABLED))
{
sprintf(id, "%d", count);
menu_items++;