mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
Various changes for reworked mute icon handling in some classes
- mute icon disabled for moviebrowser, upnpbrowser, pictureviewer
- extra handling for audioplayer
Origin commit data
------------------
Branch: ni/coolstream
Commit: bf1c7bfdb7
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-13 (Mon, 13 May 2013)
Origin message was:
------------------
* Various changes for reworked mute icon handling in some classes
- mute icon disabled for moviebrowser, upnpbrowser, pictureviewer
- extra handling for audioplayer
------------------
This commit was generated by Migit
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <daemonc/remotecontrol.h>
|
||||
#include <driver/volume.h>
|
||||
#include <gui/audiomute.h>
|
||||
#include <gui/mediaplayer.h>
|
||||
#include <zapit/zapit.h>
|
||||
|
||||
|
||||
@@ -117,6 +118,11 @@ void CVolume::setVolume(const neutrino_msg_t key, bool nowait)
|
||||
volscale = NULL;
|
||||
}
|
||||
CAudioMute::getInstance()->AudioMute(false, true);
|
||||
if (mode == CNeutrinoApp::mode_audio) {
|
||||
CAudioPlayerGui *cap = CMediaPlayerMenu::getInstance()->getPlayerInstance();
|
||||
if (cap != NULL)
|
||||
cap->refreshMuteIcon();
|
||||
}
|
||||
setVolume(msg);
|
||||
return;
|
||||
}
|
||||
@@ -138,6 +144,11 @@ void CVolume::setVolume(const neutrino_msg_t key, bool nowait)
|
||||
volscale = NULL;
|
||||
}
|
||||
CAudioMute::getInstance()->AudioMute(true, true);
|
||||
if (mode == CNeutrinoApp::mode_audio) {
|
||||
CAudioPlayerGui *cap = CMediaPlayerMenu::getInstance()->getPlayerInstance();
|
||||
if (cap != NULL)
|
||||
cap->refreshMuteIcon();
|
||||
}
|
||||
setVolume(msg);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user