diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-30 14:27:35 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-30 14:27:35 +0000 |
| commit | b4de3f46bd816a109dbd30951b3b3ce23cab5780 (patch) | |
| tree | 52c4f47c604cfc4e91865fd1eb60e6b88c9471d6 /lib/python | |
| parent | 68c21083593b5b05681efaffbe6ec50aba385ddc (diff) | |
| download | enigma2-b4de3f46bd816a109dbd30951b3b3ce23cab5780.tar.gz enigma2-b4de3f46bd816a109dbd30951b3b3ce23cab5780.zip | |
fix some hacker's code
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/NimManager.py | 5 | ||||
| -rw-r--r-- | lib/python/Screens/Satconfig.py | 23 |
2 files changed, 20 insertions, 8 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index bf4bdc93..c5b1b223 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -412,7 +412,10 @@ def InitNimManager(nimmgr): nim = config.Nims[x] if slot.nimType == nimmgr.nimType["DVB-S"]: - nim.configMode = configElement(cname + "configMode", configSelection, 0, (("simple", _("Simple")), ("nothing", _("Nothing connected")), ("loopthrough", _("Loopthrough to Socket A")), ("advanced", _("Advanced")))) # "Advanced")); + if slot.slotid == 0: + nim.configMode = configElement(cname + "configMode", configSelection, 0, (("simple", _("Simple")), ("advanced", _("Advanced")))) + else: + nim.configMode = configElement(cname + "configMode", configSelection, 0, (("simple", _("Simple")), ("nothing", _("Nothing connected")), ("loopthrough", _("Loopthrough to Socket A")), ("advanced", _("Advanced")))) #important - check if just the 2nd one is LT only and the first one is DVB-S if currentConfigSelectionElement(nim.configMode) == "loopthrough": #linked diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index f7550444..4da5ecfe 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -68,21 +68,30 @@ class NimSetup(Screen): self.createSetup() def keyLeft(self): - if self["config"].getCurrent() == self.configMode: - if self.nim.slotid == 0: - return + #if self["config"].getCurrent() == self.configMode: + #if self.nim.slotid == 0: + #while currentConfigSelectionElement(config.Nims[self.nim.slotid].configMode) != "simple" and currentConfigSelectionElement(config.Nims[self.nim.slotid].configMode) != "advanced": + #self["config"].handleKey(config.key["prevElement"]) + #else: + #self["config"].handleKey(config.key["prevElement"]) +# else: self["config"].handleKey(config.key["prevElement"]) + self.newConfig() def keyRight(self): #forbid to enable advanced mode until its ready #perhaps its better to use an own element here #this suckz .. how enable advanced config? - if self["config"].getCurrent() == self.configMode: - if self.nim.slotid == 0: - return - + #if self["config"].getCurrent() == self.configMode: + #if self.nim.slotid == 0: + #while currentConfigSelectionElement(config.Nims[self.nim.slotid].configMode) != "simple" and currentConfigSelectionElement(config.Nims[self.nim.slotid].configMode) != "advanced": + #self["config"].handleKey(config.key["nextElement"]) + #else: + #self["config"].handleKey(config.key["prevElement"]) + #else: self["config"].handleKey(config.key["nextElement"]) + self.newConfig() def keyNumberGlobal(self, number): |
