display only active remote timers in main menu
This commit is contained in:
parent
2ddc1ee46b
commit
5d83b13943
2
HISTORY
2
HISTORY
|
@ -137,3 +137,5 @@ Version 0.1.1
|
||||||
|
|
||||||
|
|
||||||
Version 0.1.2
|
Version 0.1.2
|
||||||
|
|
||||||
|
- display only active remote timers in main menu
|
||||||
|
|
|
@ -34,6 +34,7 @@ cGlobalSortedTimers::cGlobalSortedTimers(bool forceRefresh) : cVector<const cTim
|
||||||
cTimer* remoteTimer = NULL;
|
cTimer* remoteTimer = NULL;
|
||||||
while (pRemoteTimers->Service("RemoteTimers::ForEach-v1.0", &remoteTimer) && remoteTimer != NULL) {
|
while (pRemoteTimers->Service("RemoteTimers::ForEach-v1.0", &remoteTimer) && remoteTimer != NULL) {
|
||||||
remoteTimer->SetEventFromSchedule(Schedules); // make sure the event is current
|
remoteTimer->SetEventFromSchedule(Schedules); // make sure the event is current
|
||||||
|
if (remoteTimer->HasFlags(tfActive))
|
||||||
Append(remoteTimer);
|
Append(remoteTimer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue