diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-07-05 16:30:31 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-07-12 14:00:56 +0200 |
commit | b828d81385720cddfa26f9a6272d514832704882 (patch) | |
tree | 33e58cfb49b6724c6eee14137f9ec8942081df48 | |
parent | 04b1afb9da8937df70debd42828795f9b26010ce (diff) | |
download | skin-nopacity-b828d81385720cddfa26f9a6272d514832704882.tar.gz skin-nopacity-b828d81385720cddfa26f9a6272d514832704882.tar.bz2 |
Prevent fadein and fadeout if MenuCategory is mcPluginSetup or mcSetupPlugins
If fade-in or fade-out is active and the setup menu or its submenus was
used, several fade-ins and fade-outs occurred when the "OK" button was
pressed. This is normal VDR behavior. This change deactivates fade-in
and fade-out in the setup case.
-rw-r--r-- | displaymenu.c | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/displaymenu.c b/displaymenu.c index 412612f..00156c5 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -31,7 +31,7 @@ cNopacityDisplayMenu::cNopacityDisplayMenu(void) : cThread("DisplayMenu") { } cNopacityDisplayMenu::~cNopacityDisplayMenu(void) { - if (osd && menuFadeOutTime) { + if (osd && (MenuCategory() != mcPluginSetup) && (MenuCategory() != mcSetupPlugins) && menuFadeOutTime) { fadeout = true; Start(); } @@ -223,23 +223,24 @@ void cNopacityDisplayMenu::SetMenuCategory(eMenuCategory MenuCategory) { 8 mcTimerEdit, 9 mcRecording, 10 mcRecordingInfo, - 11 mcPlugin, - 12 mcPluginSetup, - 13 mcSetup, - 14 mcSetupOsd, - 15 mcSetupEpg, - 16 mcSetupDvb, - 17 mcSetupLnb, - 18 mcSetupCam, - 19 mcSetupRecord, - 20 mcSetupReplay, - 21 mcSetupMisc, - 22 mcSetupPlugins, - 23 mcCommand, - 24 mcEvent, - 25 mcText, - 26 mcFolder, - 27 mcCam + 11 mcRecordingEdit, + 12 mcPlugin, + 13 mcPluginSetup, + 14 mcSetup, + 15 mcSetupOsd, + 16 mcSetupEpg, + 17 mcSetupDvb, + 18 mcSetupLnb, + 19 mcSetupCam, + 20 mcSetupRecord, + 21 mcSetupReplay, + 22 mcSetupMisc, + 23 mcSetupPlugins, + 24 mcCommand, + 25 mcEvent, + 26 mcText, + 27 mcFolder, + 28 mcCam */ menuCategoryLast = this->MenuCategory(); cSkinDisplayMenu::SetMenuCategory(MenuCategory); @@ -645,7 +646,7 @@ void cNopacityDisplayMenu::Flush(void) { while (detailView->IsRunning()) cCondWait::SleepMs(10); if (initial) { - if (menuFadeTime) { + if ((MenuCategory() != mcPluginSetup) && (MenuCategory() != mcSetupPlugins) && menuFadeTime) { SetAlpha(0, true); Start(); } |