fix non working fix
[enigma2.git] / lib / python / Components / Lcd.py
index 5709769234b5a49002c3848fbb5760f67c26759a..0471843cb7c428fe2150d299fb9dd8af620f4fab 100644 (file)
@@ -31,6 +31,7 @@ class LCD:
 def InitLcd():
        detected = eDBoxLCD.getInstance().detected()
        SystemInfo["Display"] = detected
+       config.lcd = ConfigSubsection();
        if detected:
                def setLCDbright(configElement):
                        ilcd.setBright(configElement.value);
@@ -43,8 +44,6 @@ def InitLcd():
 
                ilcd = LCD()
 
-               config.lcd = ConfigSubsection();
-
                config.lcd.bright = ConfigSlider(default=10, limits=(0, 10))
                config.lcd.bright.addNotifier(setLCDbright);
                config.lcd.bright.apply = lambda : setLCDbright(config.lcd.bright)
@@ -61,5 +60,10 @@ def InitLcd():
                config.lcd.invert = ConfigYesNo(default=False)
                config.lcd.invert.addNotifier(setLCDinverted);
        else:
-               config.lcd.bright.apply = lambda : pass
-               config.lcd.standby.apply = lambda : pass
+               def doNothing():
+                       pass
+               config.lcd.contrast = ConfigNothing()
+               config.lcd.bright = ConfigNothing()
+               config.lcd.standby = ConfigNothing()
+               config.lcd.bright.apply = lambda : doNothing()
+               config.lcd.standby.apply = lambda : doNothing()