diff options
author | Martin Prochnow <nordlicht@martins-kabuff.de> | 2006-03-14 16:45:35 +0100 |
---|---|---|
committer | Andreas Mair <andreas@vdr-developer.org> | 2006-03-14 16:45:35 +0100 |
commit | dda6babd28ffef10bed47f53f2b4a9168fa90a67 (patch) | |
tree | 961f4e90c9b8014ee347b1eaa5b2b67a63f1bb36 /mymenurecordings.c | |
parent | 69ab28fe3563ca25153a7bc5bfab003f6c23d9aa (diff) | |
download | vdr-plugin-extrecmenu-dda6babd28ffef10bed47f53f2b4a9168fa90a67.tar.gz vdr-plugin-extrecmenu-dda6babd28ffef10bed47f53f2b4a9168fa90a67.tar.bz2 |
Version 0.5v0.5
- improved updating of moved or renamed recordings - updating should be faster now
- added patch and option to replace VDR's recordings menu; thanks to 'egal' from vdr-portal.de
- fixed the settings of tabs
- month of a recording was shown the wrong way - fixed
Diffstat (limited to 'mymenurecordings.c')
-rw-r--r-- | mymenurecordings.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/mymenurecordings.c b/mymenurecordings.c index 573d1c9..3fa1b2c 100644 --- a/mymenurecordings.c +++ b/mymenurecordings.c @@ -70,7 +70,7 @@ myMenuRecordingsItem::myMenuRecordingsItem(cRecording *Recording,int Level) } free(indexfilename); - snprintf(RecDate,sizeof(RecDate),"%02d.%02d.%02d",t.tm_mday,t.tm_mon,t.tm_year%100); + snprintf(RecDate,sizeof(RecDate),"%02d.%02d.%02d",t.tm_mday,t.tm_mon+1,t.tm_year%100); snprintf(RecTime,sizeof(RecTime),"%02d:%02d",t.tm_hour,t.tm_min); asprintf(&title,"%s%s%s%s%s%s%c%s", (mysetup.ShowRecDate?RecDate:""), @@ -112,10 +112,10 @@ void myMenuRecordingsItem::IncrementCounter(bool IsNew) myMenuRecordings::myMenuRecordings(const char *Base,int Level):cOsdMenu(Base?Base:tr("Extended recordings menu")) { // set tabs - if(mysetup.ShowRecDate&&mysetup.ShowRecTime&&mysetup.ShowRecLength) // all details are shown + if(mysetup.ShowRecDate&&mysetup.ShowRecTime) // all details are shown SetCols(8,6,4); else - if(mysetup.ShowRecDate&&!mysetup.ShowRecTime&&mysetup.ShowRecLength) // recording time is not shown + if(mysetup.ShowRecDate&&!mysetup.ShowRecTime) // recording time is not shown SetCols(8,4); else if(!mysetup.ShowRecDate&&mysetup.ShowRecTime&&mysetup.ShowRecLength) // recording date is not shown @@ -132,13 +132,6 @@ myMenuRecordings::myMenuRecordings(const char *Base,int Level):cOsdMenu(Base?Bas Display(); Set(); - /* - if(Current()<0) - SetCurrent(First()); - else - if(myReplayControl::LastReplayed&&Open()) - return; - */ Display(); SetHelpKeys(); } @@ -179,8 +172,6 @@ void myMenuRecordings::SetHelpKeys() void myMenuRecordings::Set(bool Refresh) { -// const char *currentrecording=myReplayControl::LastReplayed(); - cThreadLock RecordingsLock(&Recordings); Clear(); Recordings.Sort(); @@ -479,11 +470,11 @@ eOSState myMenuRecordings::ProcessKey(eKeys Key) break; } case kBlue: return Info(); - case kNone: if(Recordings.StateChanged(recordingsstate)) - Set(true); default: break; } } + if(Recordings.StateChanged(recordingsstate)) + Set(true); // go back if list is empty if(!Count()) state=osBack; |