diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-13 15:45:02 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-13 15:45:02 +0100 |
commit | 317b15f5a06007ebe6f475c6700424ae9d07d1c1 (patch) | |
tree | 8a6fe870ec735b9990bc0ad4c47a0498d461a912 /vdr.c | |
parent | ff88f3bfedfae42a394a8447657554d3ce4eb8fd (diff) | |
download | vdr-317b15f5a06007ebe6f475c6700424ae9d07d1c1.tar.gz vdr-317b15f5a06007ebe6f475c6700424ae9d07d1c1.tar.bz2 |
Implemented the option "Setup/OSD/Menu button closes"
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.234 2006/01/09 16:44:15 kls Exp $ + * $Id: vdr.c 1.235 2006/01/13 15:33:54 kls Exp $ */ #include <getopt.h> @@ -787,14 +787,17 @@ int main(int argc, char *argv[]) // Keys that must work independent of any interactive mode: switch (key) { // Menu control: - case kMenu: + case kMenu: { key = kNone; // nobody else needs to see this key + bool WasOpen = Interact != NULL; + bool WasMenu = Interact && Interact->IsMenu(); if (Menu) DELETE_MENU; else if (cControl::Control() && cOsd::IsOpen()) cControl::Control()->Hide(); - else + if (!WasOpen || !WasMenu && !Setup.MenuButtonCloses) Menu = new cMenuMain; + } break; // Info: case kInfo: { |