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
/
Clock.py
diff --git
a/lib/python/Components/Sources/Clock.py
b/lib/python/Components/Sources/Clock.py
index e2d7faa7fe1c212104b2069eaf71088618c3aa5e..7f1a8d7f32bfadd0aae542a8d497e176a056da97 100644
(file)
--- a/
lib/python/Components/Sources/Clock.py
+++ b/
lib/python/Components/Sources/Clock.py
@@
-18,3
+18,11
@@
class Clock(Source):
def poll(self):
self.changed((self.CHANGED_POLL,))
+
+ def doSuspend(self, suspended):
+ if suspended:
+ self.clock_timer.stop()
+ else:
+ self.clock_timer.start(1000)
+ self.poll()
+