display only active remote timers in main menu

This commit is contained in:
louis 2015-01-07 05:16:37 +01:00
parent 2ddc1ee46b
commit 5d83b13943
2 changed files with 4 additions and 1 deletions

View File

@ -137,3 +137,5 @@ Version 0.1.1
Version 0.1.2
- display only active remote timers in main menu

View File

@ -34,7 +34,8 @@ cGlobalSortedTimers::cGlobalSortedTimers(bool forceRefresh) : cVector<const cTim
cTimer* remoteTimer = NULL;
while (pRemoteTimers->Service("RemoteTimers::ForEach-v1.0", &remoteTimer) && remoteTimer != NULL) {
remoteTimer->SetEventFromSchedule(Schedules); // make sure the event is current
Append(remoteTimer);
if (remoteTimer->HasFlags(tfActive))
Append(remoteTimer);
}
}