From 8129d116fb6f8b2c77c9e3ad3dac7e18716b91f8 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Mon, 2 Mar 2020 11:37:50 +0100 Subject: Show numTimersToday in timeline --- recmenus.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'recmenus.c') diff --git a/recmenus.c b/recmenus.c index 243a72c..f4f1e12 100644 --- a/recmenus.c +++ b/recmenus.c @@ -1414,7 +1414,7 @@ cRecMenuTimeline::cRecMenuTimeline(cTVGuideTimerConflicts *timerConflicts) { conflictsToday = timerConflicts->GetConflictsBetween(timeStart, timeStop); GetTimersForDay(); SetWidthPercent(95); - header = new cRecMenuItemTimelineHeader(timeStart, conflictsToday); + header = new cRecMenuItemTimelineHeader(timeStart, numTimersToday, conflictsToday); SetHeader(header); cRecMenuItem *footer = new cRecMenuItemButton(tr("Close"), rmsClose, false, true); SetFooter(footer); @@ -1456,14 +1456,16 @@ void cRecMenuTimeline::SetTimers(void) { if (numTimersToday == 0) { AddMenuItem(new cRecMenuItemTimelineTimer(NULL, 0, 0, conflictsToday, header, false)); header->UnsetCurrentTimer(); + header->SetNumTimersToday(0); footer->setActive(); } else { - for (int i=0; isetActive(); if (!AddMenuItemInitial(item)) break; + header->SetNumTimersToday(numTimersToday); } footer->setInactive(); } -- cgit v1.2.3