mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
rename g_PluginList to g_Plugins; this isn't a list of plugins
Origin commit data
------------------
Branch: ni/coolstream
Commit: 856c676430
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-01 (Wed, 01 Mar 2017)
Origin message was:
------------------
- rename g_PluginList to g_Plugins; this isn't a list of plugins
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1029,21 +1029,21 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
void CMenuWidget::integratePlugins(CPlugins::i_type_t integration, const unsigned int shortcut, bool enabled)
|
||||
{
|
||||
bool separatorline = false;
|
||||
unsigned int number_of_plugins = (unsigned int) g_PluginList->getNumberOfPlugins();
|
||||
unsigned int number_of_plugins = (unsigned int) g_Plugins->getNumberOfPlugins();
|
||||
unsigned int sc = shortcut;
|
||||
for (unsigned int count = 0; count < number_of_plugins; count++)
|
||||
{
|
||||
if ((g_PluginList->getIntegration(count) == integration) && !g_PluginList->isHidden(count))
|
||||
if ((g_Plugins->getIntegration(count) == integration) && !g_Plugins->isHidden(count))
|
||||
{
|
||||
if (!separatorline)
|
||||
{
|
||||
addItem(GenericMenuSeparatorLine);
|
||||
separatorline = true;
|
||||
}
|
||||
printf("[neutrino] integratePlugins: add %s\n", g_PluginList->getName(count));
|
||||
printf("[neutrino] integratePlugins: add %s\n", g_Plugins->getName(count));
|
||||
neutrino_msg_t dk = (shortcut != CRCInput::RC_nokey) ? CRCInput::convertDigitToKey(sc++) : CRCInput::RC_nokey;
|
||||
CMenuForwarder *fw_plugin = new CMenuForwarder(g_PluginList->getName(count), enabled, NULL, CPluginsExec::getInstance(), to_string(count).c_str(), dk);
|
||||
fw_plugin->setHint(g_PluginList->getHintIcon(count), g_PluginList->getDescription(count));
|
||||
CMenuForwarder *fw_plugin = new CMenuForwarder(g_Plugins->getName(count), enabled, NULL, CPluginsExec::getInstance(), to_string(count).c_str(), dk);
|
||||
fw_plugin->setHint(g_Plugins->getHintIcon(count), g_Plugins->getDescription(count));
|
||||
addItem(fw_plugin);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user