From 03438a82e284cfd458954de53cca44af6e3fe1ee Mon Sep 17 00:00:00 2001 From: Martin Schirrmacher Date: Wed, 10 Dec 2014 18:31:22 +0100 Subject: fix topbar number recordings --- HISTORY | 3 +++ baserender.c | 2 +- displaymenu.c | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 51abdadc..048714c1 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,9 @@ VDR Plugin 'skinflatplus' Revision History --------------------------------------- +2014-XX-XX: Version 0.5.1 +- [fix] topbar number recordings + 2014-12-04: Version 0.5.0 - [fix] femon receiver - do not get data from previous channel - [fix] display replay jump text position diff --git a/baserender.c b/baserender.c index 64667b84..fa0ff10a 100644 --- a/baserender.c +++ b/baserender.c @@ -383,7 +383,7 @@ void cFlatBaseRender::TopBarUpdate(void) { if( Config.TopBarRecordingShow ) { // look for timers for(cTimer *ti = Timers.First(); ti; ti = Timers.Next(ti)) { - if( ti->Matches(t) ) { + if( ti->HasFlags(tfRecording) ) { numRec++; } } diff --git a/displaymenu.c b/displaymenu.c index b034c417..07ce4f17 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -4106,7 +4106,7 @@ int cFlatDisplayMenu::DrawMainMenuWidgetActiveTimers(int wLeft, int wWidth, int time(&t); int index = 0, numRec = 0; for(cTimer *ti = Timers.First(); ti && index < Config.MainMenuWidgetActiveTimerMaxCount; ti = Timers.Next(ti), index++) { - if( ti->Matches(t) && ti->HasFlags(tfActive) ) { + if( ti->Matches(t) && ti->HasFlags(tfRecording) ) { numRec++; } } -- cgit v1.2.3