X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FLcd.py;h=dde158b6a16f4c1d97d697b312f12f239a7637bb;hp=7d27c097ee9fd2c98a68c977a7711253f25d82be;hb=c4a55fbb1dbb22ccd43bfd92f1ec9df4f811310f;hpb=4ba60a7e801150afc2e18f1250febe5e49a46d7a diff --git a/lib/python/Components/Lcd.py b/lib/python/Components/Lcd.py index 7d27c09..dde158b 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) +