summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-09-21 16:18:51 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-09-21 16:18:51 +0200
commitd8aef25cbcfb43b8aacf13537148c4387ad95be8 (patch)
treeb383bb5c6717e97fd86d5afdbd9aa0a284d2bb32 /menu.c
parenta77360a1b6efabbda5c51c48dced2bceda37a5b6 (diff)
downloadvdr-d8aef25cbcfb43b8aacf13537148c4387ad95be8.tar.gz
vdr-d8aef25cbcfb43b8aacf13537148c4387ad95be8.tar.bz2
Pressing 'Ok' while the mode display is on brings up the progress display
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index d15dc192..b2954a95 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.123 2001/09/21 16:03:48 kls Exp $
+ * $Id: menu.c 1.124 2001/09/21 16:16:47 kls Exp $
*/
#include "menu.h"
@@ -2386,6 +2386,8 @@ void cReplayControl::ClearLastReplayed(const char *FileName)
void cReplayControl::Show(int Seconds)
{
+ if (modeOnly)
+ Hide();
if (!visible) {
shown = ShowProgress(true);
timeoutShow = (shown && Seconds > 0) ? time(NULL) + Seconds : 0;
@@ -2725,7 +2727,11 @@ eOSState cReplayControl::ProcessKey(eKeys Key)
switch (Key) {
// Menu control:
case kMenu: Hide(); return osMenu; // allow direct switching to menu
- case kOk: visible ? Hide() : Show(); break;
+ case kOk: if (visible && !modeOnly)
+ Hide();
+ else
+ Show();
+ break;
case kBack: return osRecordings;
default: return osUnknown;
}