diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-07-11 14:02:45 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-07-30 14:17:59 +0200 |
commit | b6e1d8c80056ad8b90cca019cba69186baa4519e (patch) | |
tree | 8815ec74b3823b92d72013a3837566ec76c24543 /displayvolume.c | |
parent | 43862c7c80eb8ff2b113a02c708e51498cdffab1 (diff) | |
download | skin-nopacity-b6e1d8c80056ad8b90cca019cba69186baa4519e.tar.gz skin-nopacity-b6e1d8c80056ad8b90cca019cba69186baa4519e.tar.bz2 |
Add "Use animation" to setup
With this menu item, the use of animation can be switched off centrally.
Diffstat (limited to 'displayvolume.c')
-rw-r--r-- | displayvolume.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/displayvolume.c b/displayvolume.c index bb0293a..567afe5 100644 --- a/displayvolume.c +++ b/displayvolume.c @@ -51,7 +51,7 @@ cNopacityDisplayVolume::cNopacityDisplayVolume(void) : cThread("DisplayVolume") } cNopacityDisplayVolume::~cNopacityDisplayVolume(void) { - if (config.GetValue("volumeFadeOutTime")) { + if (config.GetValue("animation") && config.GetValue("volumeFadeOutTime")) { fadeout = true; Start(); } @@ -138,7 +138,7 @@ void cNopacityDisplayVolume::SetAlpha(int Alpha) { void cNopacityDisplayVolume::Flush(void) { if (Running()) return; - if (initial && config.GetValue("volumeFadeTime")) { + if (initial && config.GetValue("animation") && config.GetValue("volumeFadeTime")) { SetAlpha(0); Start(); } |