fix save current selected video mode
[enigma2.git] / lib / python / Plugins / SystemPlugins / Videomode / plugin.py
index b1a146cbe15948072f1368f6b90bbc7306f49b09..ab7aad727fd547e18a618bb1de65281eba324709 100644 (file)
@@ -127,11 +127,8 @@ class VideoSetup(Screen, ConfigListScreen):
        def apply(self):
                port = config.av.videoport.value
                mode = config.av.videomode[port].value
        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:
                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)
                        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)