diff options
author | Thomas Maass <mase@mase1.setho.org> | 2014-01-05 22:32:24 +0100 |
---|---|---|
committer | Thomas Maass <mase@mase1.setho.org> | 2014-01-05 22:32:24 +0100 |
commit | d014d52dcb3790bd1ba38fe7b6fb0c4136364148 (patch) | |
tree | 85e59fd7cb92e396cbdcfd4999251d9ce5ffaacb | |
parent | 9c3c4538b84bab35c5b72966fec144d8456331a3 (diff) | |
download | vdr-plugin-hddarchive-master.tar.gz vdr-plugin-hddarchive-master.tar.bz2 |
-rw-r--r-- | mymenu.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -10,8 +10,10 @@ // --- cMyMenuRecordings ------------------------------------------------------- +#if APIVERSNUM > 20101 cString cMyMenuRecordings::path; cString cMyMenuRecordings::fileName; +#endif cMyMenuRecordings::cMyMenuRecordings(const char *Base, int Level, bool OpenSubMenus, bool Show) :cOsdMenu(Base ? Base : tr("HDD-Archive"), 9, 6, 6), show(Show) @@ -26,12 +28,17 @@ cMyMenuRecordings::cMyMenuRecordings(const char *Base, int Level, bool OpenSubMe Set(); if (Current() < 0) SetCurrent(First()); +#if APIVERSNUM > 20101 else if (OpenSubMenus && (cReplayControl::LastReplayed() || *path || *fileName)) { if (!*path || Level < strcountchr(path, FOLDERDELIMCHAR)) { if (Open(true)) return; } } +#else + else if (OpenSubMenus && cReplayControl::LastReplayed() && Open(true)) + return; +#endif Display(); SetHelpKeys(); } @@ -332,6 +339,7 @@ eOSState cMyMenuRecordings::ProcessKey(eKeys Key) default: break; } } +#if APIVERSNUM > 20101 else if (state == osUser1) { // a recording or path was renamed, so let's refresh the menu CloseSubMenu(false); @@ -343,6 +351,7 @@ eOSState cMyMenuRecordings::ProcessKey(eKeys Key) path = NULL; fileName = NULL; } +#endif if (Key == kYellow && HadSubMenu && !HasSubMenu()) { // the last recording in a subdirectory was deleted, so let's go back up cOsdMenu::Del(Current()); |