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 /displaymenu.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 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/displaymenu.c b/displaymenu.c index 3d9c272..63371a0 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -31,9 +31,11 @@ cNopacityDisplayMenu::cNopacityDisplayMenu(void) : cThread("DisplayMenu") { } cNopacityDisplayMenu::~cNopacityDisplayMenu(void) { - if (osd && (MenuCategory() != mcPluginSetup) && (MenuCategory() != mcSetupPlugins) && menuFadeOutTime) { - fadeout = true; - Start(); + if (config.GetValue("animation") && menuFadeOutTime) { + if ((MenuCategory() != mcPluginSetup) && (MenuCategory() != mcSetupPlugins)) { + fadeout = true; + Start(); + } } int count = 0; while (Active()) { @@ -639,8 +641,8 @@ void cNopacityDisplayMenu::Flush(void) { if (config.GetValue("showTimers")) DrawTimers(timersChanged, numConflicts); } - if (initial) { - if ((MenuCategory() != mcPluginSetup) && (MenuCategory() != mcSetupPlugins) && menuFadeTime) { + if (initial && config.GetValue("animation") && menuFadeTime) { + if ((MenuCategory() != mcPluginSetup) && (MenuCategory() != mcSetupPlugins)) { SetAlpha(0, true); Start(); } |