also show SNR in dB in PositionerSetup
[enigma2.git] / lib / python / Plugins / SystemPlugins / Videomode / plugin.py
index b51cc08d83372f22aeeb8896e2cd9826fd9eabe9..ab7aad727fd547e18a618bb1de65281eba324709 100644 (file)
@@ -95,6 +95,9 @@ class VideoSetup(Screen, ConfigListScreen):
                        if SystemInfo["CanDownmixAC3"]:
                                self.list.append(getConfigListEntry(_("AC3 downmix"), config.av.downmix_ac3))
 
+               if SystemInfo["CanChangeOsdAlpha"]:
+                       self.list.append(getConfigListEntry(_("OSD visibility"), config.av.osd_alpha))
+
                self["config"].list = self.list
                self["config"].l.setList(self.list)
 
@@ -124,11 +127,8 @@ class VideoSetup(Screen, ConfigListScreen):
        def apply(self):
                port = config.av.videoport.value
                mode = config.av.videomode[port].value
-               rate =config.av.videorate[mode].value
+               rate = config.av.videorate[mode].value
                if (port, mode, rate) != self.last_good:
-                       config.av.videoport.value = self.last_good[0]
-                       config.av.videomode[port].value = self.last_good[1]
-                       config.av.videorate[mode].value = self.last_good[2]
                        self.hw.setMode(port, mode, rate)
                        from Screens.MessageBox import MessageBox
                        self.session.openWithCallback(self.confirm, MessageBox, "Is this videomode ok?", MessageBox.TYPE_YESNO, timeout = 20, default = False)