diff options
| author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-10-17 18:38:56 +0200 |
|---|---|---|
| committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-10-17 18:38:56 +0200 |
| commit | d001a714640640f9dfd2efe1b4e45c2e40a46b0a (patch) | |
| tree | 322fab2955ad758d753cfa8eeef242455ede6575 | |
| parent | 9623b0ab9e2d09902207d569cb32140139912f99 (diff) | |
| download | skin-flatplus-d001a714640640f9dfd2efe1b4e45c2e40a46b0a.tar.gz skin-flatplus-d001a714640640f9dfd2efe1b4e45c2e40a46b0a.tar.bz2 | |
update timer count
| -rw-r--r-- | displaymenu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/displaymenu.c b/displaymenu.c index a27906b7..969f3cdc 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -242,13 +242,13 @@ void cFlatDisplayMenu::SetTitle(const char *Title) { case mcTimer: icon = "menuIcons/Timers"; if( Config.MenuTimerShowCount ) { - int timerCount = 0, timerRecCount = 0; + int timerCount = 0, timerActiveCount = 0; for(cTimer *Timer = Timers.First(); Timer; Timer = Timers.Next(Timer)) { timerCount++; - if( Timer->Recording() ) - timerRecCount++; + if( Timer->HasFlags(tfActive) ) + timerActiveCount++; } - cString newTitle = cString::sprintf("%s (%d/%d)", Title, timerRecCount, timerCount); + cString newTitle = cString::sprintf("%s (%d/%d)", Title, timerActiveCount, timerCount); TopBarSetTitle(*newTitle); } break; |
