aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/Clock.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-07-30 23:21:55 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-07-30 23:21:55 +0000
commitddb050fe8357a01b1fc52070ee9f87450c407c1c (patch)
tree39a1774f394d9651cc9a4bbf646ab852779cd7e0 /lib/python/Components/Sources/Clock.py
parent1557c715e461d5a7deb04bb008c6497441351bbe (diff)
downloadenigma2-ddb050fe8357a01b1fc52070ee9f87450c407c1c.tar.gz
enigma2-ddb050fe8357a01b1fc52070ee9f87450c407c1c.zip
suspend timers when all renders are hidden
Diffstat (limited to 'lib/python/Components/Sources/Clock.py')
-rw-r--r--lib/python/Components/Sources/Clock.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python/Components/Sources/Clock.py b/lib/python/Components/Sources/Clock.py
index e2d7faa7..7f1a8d7f 100644
--- 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()
+