mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
infoicons: avoid extern CInfoIcons; use getInstance() instead of this
Origin commit data
------------------
Commit: 5a34b06137
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-03 (Wed, 03 Jan 2018)
Origin message was:
------------------
- infoicons: avoid extern CInfoIcons; use getInstance() instead of this
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
#include <driver/screen_max.h>
|
||||
|
||||
#include <gui/infoicons.h>
|
||||
extern CInfoIcons *InfoIcons; /* neutrino.cpp */
|
||||
|
||||
typedef struct menu_data_t
|
||||
{
|
||||
@@ -106,7 +105,7 @@ int CInfoIconsSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
res = menu_return::RETURN_EXIT;
|
||||
}
|
||||
else if(actionKey.substr(0,18) == "infoicons_switch") {
|
||||
InfoIcons->switchInfoIconsOnOff();
|
||||
CInfoIcons::getInstance()->switchInfoIconsOnOff();
|
||||
res = menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user