From e8012d8f35db7eaa125fb26aa275e5a0b0b6f4f5 Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Sun, 25 Jul 2010 10:56:07 +0300 Subject: Show timer activity status on the last fetched line --- src/vdr-plugin/menu_timer.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/vdr-plugin/menu_timer.c b/src/vdr-plugin/menu_timer.c index bf895d1..6a79f4e 100644 --- a/src/vdr-plugin/menu_timer.c +++ b/src/vdr-plugin/menu_timer.c @@ -62,13 +62,12 @@ cEditWebviTimerMenu::cEditWebviTimerMenu(cWebviTimer &timer, strftime(lastTime, 25, "%x %X", localtime(&updateTime)); } - cString lastUpdated = cString::sprintf("%s\t%s", tr("Last fetched:"), lastTime); - Add(new cOsdItem(lastUpdated, osUnknown, false)); + const char *active =""; + if (timer.Running()) + active = " (active)"; - // still running? - if (timer.Running()) { - Add(new cOsdItem("Timer active", osUnknown, false)); - } + cString lastUpdated = cString::sprintf("%s\t%s%s", tr("Last fetched:"), lastTime, active); + Add(new cOsdItem(lastUpdated, osUnknown, false)); // error if (!timer.Success()) { -- cgit v1.2.3