- pluginlist: formatting code using astyle

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-03-27 22:54:04 +02:00
committed by Thilo Graf
parent 21d4b727a3
commit 7f4fcddd9a
2 changed files with 19 additions and 15 deletions

View File

@@ -49,7 +49,7 @@
#include <zapit/client/zapittools.h> #include <zapit/client/zapittools.h>
#include <system/helpers.h> #include <system/helpers.h>
extern CPlugins * g_Plugins; /* neutrino.cpp */ extern CPlugins *g_Plugins;
CPluginList::CPluginList(const neutrino_locale_t Title, const uint32_t listtype) CPluginList::CPluginList(const neutrino_locale_t Title, const uint32_t listtype)
{ {
@@ -63,7 +63,8 @@ CPluginList::CPluginList(const neutrino_locale_t Title, const uint32_t listtype)
int CPluginList::run() int CPluginList::run()
{ {
int ret = g_Plugins->startPlugin(number); int ret = g_Plugins->startPlugin(number);
if (!g_Plugins->getScriptOutput().empty()) { if (!g_Plugins->getScriptOutput().empty())
{
hide(); hide();
ShowMsg(LOCALE_PLUGINS_RESULT, g_Plugins->getScriptOutput(), CMsgBox::mbrBack, CMsgBox::mbBack, NEUTRINO_ICON_SHELL, 320, g_settings.timing[SNeutrinoSettings::TIMING_STATIC_MESSAGES]); ShowMsg(LOCALE_PLUGINS_RESULT, g_Plugins->getScriptOutput(), CMsgBox::mbrBack, CMsgBox::mbBack, NEUTRINO_ICON_SHELL, 320, g_settings.timing[SNeutrinoSettings::TIMING_STATIC_MESSAGES]);
} }
@@ -98,8 +99,10 @@ int CPluginList::exec(CMenuTarget* parent, const std::string &actionKey)
int nop = g_Plugins->getNumberOfPlugins(); int nop = g_Plugins->getNumberOfPlugins();
for(int count = 0; count < nop; count++) { for (int count = 0; count < nop; count++)
if ((g_Plugins->getType(count) & pluginlisttype) && !g_Plugins->isHidden(count) && (g_Plugins->getIntegration(count) == PLUGIN_INTEGRATION_DISABLED)) { {
if ((g_Plugins->getType(count) & pluginlisttype) && !g_Plugins->isHidden(count) && (g_Plugins->getIntegration(count) == PLUGIN_INTEGRATION_DISABLED))
{
neutrino_msg_t d_key = g_Plugins->getKey(count); neutrino_msg_t d_key = g_Plugins->getKey(count);
keyhelper.get(&key, &dummy, d_key); keyhelper.get(&key, &dummy, d_key);
CMenuForwarder *f = new CMenuForwarder(std::string(g_Plugins->getName(count)), true, NULL, this, to_string(count).c_str(), key); CMenuForwarder *f = new CMenuForwarder(std::string(g_Plugins->getName(count)), true, NULL, this, to_string(count).c_str(), key);
@@ -149,7 +152,8 @@ int CPluginsExec::exec(CMenuTarget* parent, const std::string & actionKey)
if (parent != NULL) if (parent != NULL)
parent->hide(); parent->hide();
if (actionKey == "teletext") { if (actionKey == "teletext")
{
g_RCInput->postMsg(CRCInput::RC_timeout, 0); g_RCInput->postMsg(CRCInput::RC_timeout, 0);
g_RCInput->postMsg(CRCInput::RC_text, 0); g_RCInput->postMsg(CRCInput::RC_text, 0);
return menu_return::RETURN_EXIT; return menu_return::RETURN_EXIT;