From 9d3112aad388b4369a339b851aa2507a02bb2d4f Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 9 Aug 2006 00:26:15 +0000 Subject: fix caching --- lib/python/Components/Sources/Boolean.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/python/Components/Sources/Boolean.py') diff --git a/lib/python/Components/Sources/Boolean.py b/lib/python/Components/Sources/Boolean.py index bd5222af..9ca5613d 100644 --- a/lib/python/Components/Sources/Boolean.py +++ b/lib/python/Components/Sources/Boolean.py @@ -1,4 +1,5 @@ from Source import Source +from Components.Element import cached from enigma import eTimer # a small warning: @@ -16,6 +17,7 @@ class Boolean(Source, object): self.poll_timer.timeout.get().append(self.poll) self.poll_timer.start(poll) + @cached def getBoolean(self): if self.function is not None: return self.function() -- cgit v1.2.3