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