mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
Infoclock: unify handling in some classes with singleton
Origin commit data
------------------
Commit: 59d9b7068e
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-29 (Mon, 29 Feb 2016)
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
#include <system/debug.h>
|
||||
#include <video.h>
|
||||
extern cVideo * videoDecoder;
|
||||
extern CInfoClock *InfoClock;
|
||||
|
||||
|
||||
CMediaPlayerMenu::CMediaPlayerMenu()
|
||||
{
|
||||
@@ -108,7 +108,7 @@ int CMediaPlayerMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
else if (actionKey == "movieplayer")
|
||||
{
|
||||
audiomute->enableMuteIcon(false);
|
||||
InfoClock->enableInfoClock(false);
|
||||
CInfoClock::getInstance()->enableInfoClock(false);
|
||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||
if( mode == NeutrinoMessages::mode_radio )
|
||||
CFrameBuffer::getInstance()->stopFrame();
|
||||
@@ -116,7 +116,7 @@ int CMediaPlayerMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
if( mode == NeutrinoMessages::mode_radio )
|
||||
CFrameBuffer::getInstance()->showFrame("radiomode.jpg");
|
||||
audiomute->enableMuteIcon(true);
|
||||
InfoClock->enableInfoClock(true);
|
||||
CInfoClock::getInstance()->enableInfoClock(true);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user