From 5d83b13943f3b9cd1196c4082991b4cf46f56959 Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 7 Jan 2015 05:16:37 +0100 Subject: [PATCH] display only active remote timers in main menu --- HISTORY | 2 ++ libcore/timers.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 039a2de..229a61f 100644 --- a/HISTORY +++ b/HISTORY @@ -137,3 +137,5 @@ Version 0.1.1 Version 0.1.2 + +- display only active remote timers in main menu diff --git a/libcore/timers.c b/libcore/timers.c index 00f40e9..3e80ec7 100644 --- a/libcore/timers.c +++ b/libcore/timers.c @@ -34,7 +34,8 @@ cGlobalSortedTimers::cGlobalSortedTimers(bool forceRefresh) : cVectorService("RemoteTimers::ForEach-v1.0", &remoteTimer) && remoteTimer != NULL) { remoteTimer->SetEventFromSchedule(Schedules); // make sure the event is current - Append(remoteTimer); + if (remoteTimer->HasFlags(tfActive)) + Append(remoteTimer); } }