InfoClock: Fix display clock in movie browser, file browser etc.

This commit is contained in:
M. Liebmann
2013-11-22 08:52:08 +01:00
parent 6a5d335430
commit 7466d6f19c
10 changed files with 57 additions and 40 deletions

View File

@@ -39,6 +39,7 @@
#include <neutrinoMessages.h>
#include <gui/audiomute.h>
#include <gui/infoclock.h>
#include <gui/movieplayer.h>
#include <gui/pictureviewer.h>
#if ENABLE_UPNP
@@ -52,6 +53,7 @@
#include <system/debug.h>
#include <video.h>
extern cVideo * videoDecoder;
extern CInfoClock *InfoClock;
CMediaPlayerMenu::CMediaPlayerMenu()
{
@@ -106,6 +108,7 @@ int CMediaPlayerMenu::exec(CMenuTarget* parent, const std::string &actionKey)
else if (actionKey == "movieplayer")
{
audiomute->enableMuteIcon(false);
InfoClock->enableInfoClock(false);
int mode = CNeutrinoApp::getInstance()->getMode();
if( mode == NeutrinoMessages::mode_radio )
videoDecoder->StopPicture();
@@ -113,6 +116,7 @@ int CMediaPlayerMenu::exec(CMenuTarget* parent, const std::string &actionKey)
if( mode == NeutrinoMessages::mode_radio )
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/radiomode.jpg");
audiomute->enableMuteIcon(true);
InfoClock->enableInfoClock(true);
return res;
}