add very simple scan
[enigma2.git] / lib / python / Screens / Satconfig.py
index 49de8c8..404da70 100644 (file)
@@ -54,7 +54,9 @@ class NimSetup(Screen):
                self.newConfig()
 
        def keyRight(self):
-               self["config"].handleKey(config.key["nextElement"])
+               #forbid to enable advanced mode until its ready
+               if self["config"].getCurrent()[0] != "Configmode":
+                       self["config"].handleKey(config.key["nextElement"])
                self.newConfig()
 
        def keyNumberGlobal(self, number):
@@ -65,6 +67,7 @@ class NimSetup(Screen):
        def keySave(self):
                for x in self["config"].list:
                        x[1].save()
+               nimmanager.sec.update() 
                self.close()
 
        def keyCancel(self):
@@ -83,15 +86,15 @@ class NimSetup(Screen):
                        "left": self.keyLeft,
                        "right": self.keyRight,
                        "1": self.keyNumberGlobal,
-            "2": self.keyNumberGlobal,
-            "3": self.keyNumberGlobal,
-            "4": self.keyNumberGlobal,
-            "5": self.keyNumberGlobal,
-            "6": self.keyNumberGlobal,
-            "7": self.keyNumberGlobal,
-            "8": self.keyNumberGlobal,
-            "9": self.keyNumberGlobal,
-            "0": self.keyNumberGlobal
+                       "2": self.keyNumberGlobal,
+                       "3": self.keyNumberGlobal,
+                       "4": self.keyNumberGlobal,
+                       "5": self.keyNumberGlobal,
+                       "6": self.keyNumberGlobal,
+                       "7": self.keyNumberGlobal,
+                       "8": self.keyNumberGlobal,
+                       "9": self.keyNumberGlobal,
+                       "0": self.keyNumberGlobal
                }, -1)
 
                self.list = [ ]