aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Lcd.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-01-27 12:14:14 +0100
committerghost <andreas.monzner@multimedia-labs.de>2010-01-27 12:14:14 +0100
commitb7a4b4f7228b79424a4a58dbe8de8c7e66e532ae (patch)
treefff7b4f5e0d7d3e0e2b77eb73f39da9abc8e1f7e /lib/python/Components/Lcd.py
parent6b8f07efaaf750a3b8002c3fce9850cb669ec7f3 (diff)
downloadenigma2-b7a4b4f7228b79424a4a58dbe8de8c7e66e532ae.tar.gz
enigma2-b7a4b4f7228b79424a4a58dbe8de8c7e66e532ae.zip
cleanup lcd code
Diffstat (limited to 'lib/python/Components/Lcd.py')
-rw-r--r--lib/python/Components/Lcd.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py
index 7d27c097..dde158b6 100644
--- a/lib/python/Components/Lcd.py
+++ b/lib/python/Components/Lcd.py
@@ -28,6 +28,14 @@ class LCD:
def isOled(self):
return eDBoxLCD.getInstance().isOled()
+def leaveStandby():
+ config.lcd.bright.apply()
+
+def standbyCounterChanged(configElement):
+ from Screens.Standby import inStandby
+ inStandby.onClose.append(leaveStandby)
+ config.lcd.standby.apply()
+
def InitLcd():
detected = eDBoxLCD.getInstance().detected()
SystemInfo["Display"] = detected
@@ -72,3 +80,6 @@ def InitLcd():
config.lcd.standby = ConfigNothing()
config.lcd.bright.apply = lambda : doNothing()
config.lcd.standby.apply = lambda : doNothing()
+
+ config.misc.standbyCounter.addNotifier(standbyCounterChanged, initial_call = False)
+