git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
suspend timers when all renders are hidden
[enigma2.git]
/
lib
/
python
/
Components
/
Sources
/
FrontendStatus.py
diff --git
a/lib/python/Components/Sources/FrontendStatus.py
b/lib/python/Components/Sources/FrontendStatus.py
index f1402f110863d1f06ec979ea8302f16ffdb63251..352b9fdc5252fe01a8acfc7e433cd35a2255611b 100644
(file)
--- a/
lib/python/Components/Sources/FrontendStatus.py
+++ b/
lib/python/Components/Sources/FrontendStatus.py
@@
-37,3
+37,10
@@
class FrontendStatus(Source):
return service and service.frontendInfo()
else:
return None
+
+ def doSuspend(self, suspended):
+ if suspended:
+ self.poll_timer.stop()
+ else:
+ self.poll_timer.start(1000)
+