mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
- plugins: don't show integrated plugins in usermenu
This commit is contained in:
@@ -109,7 +109,7 @@ int CPluginList::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
int shortcut = 1;
|
int shortcut = 1;
|
||||||
|
|
||||||
for(int count = 0; count < nop; count++) {
|
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++));
|
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
|
//TODO: use hint-icons; header-icons are to small
|
||||||
f->setHint("", g_PluginList->getDescription(count));
|
f->setHint("", g_PluginList->getDescription(count));
|
||||||
|
@@ -309,7 +309,7 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
|
|||||||
if (g_settings.personalize[SNeutrinoSettings::P_UMENU_PLUGIN_TYPE_LUA])
|
if (g_settings.personalize[SNeutrinoSettings::P_UMENU_PLUGIN_TYPE_LUA])
|
||||||
show = show || g_PluginList->getType(count) == CPlugins::P_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);
|
sprintf(id, "%d", count);
|
||||||
menu_items++;
|
menu_items++;
|
||||||
|
Reference in New Issue
Block a user