aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-07-17 10:59:29 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2008-07-17 10:59:29 +0000
commitc39bb28b743d4bc4457a63f3d0896690209356b4 (patch)
treeb33bf021099eaac112666a7e95ee18df12ad87ec
parentf0ebb0b08711ff967551180fdd45efb8e515f7b7 (diff)
downloadenigma2-c39bb28b743d4bc4457a63f3d0896690209356b4.tar.gz
enigma2-c39bb28b743d4bc4457a63f3d0896690209356b4.zip
hopefully fix SatConfig (rebuilding new choices each time the satconfig is called for a tuner was faulty)
-rw-r--r--lib/python/Screens/Satconfig.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py
index 40bf7046..49fc2b7b 100644
--- a/lib/python/Screens/Satconfig.py
+++ b/lib/python/Screens/Satconfig.py
@@ -60,8 +60,8 @@ class NimSetup(Screen, ConfigListScreen):
choices["satposdepends"] = _("second cable of motorized LNB")
if len(nimmanager.canConnectTo(self.slotid)) > 0:
choices["loopthrough"] = _("loopthrough to")
- self.nimConfig.configMode = updateConfigElement(self.nimConfig.configMode, ConfigSelection(choices = choices, default = "simple"))
-
+ self.nim.config.configMode.setChoices(choices)
+
def createSetup(self):
print "Creating setup"
self.list = [ ]
@@ -98,7 +98,8 @@ class NimSetup(Screen, ConfigListScreen):
for id in nimlist:
#choices.append((str(id), str(chr(65 + id))))
choices.append((str(id), nimmanager.getNimDescription(id)))
- self.nimConfig.connectedTo = updateConfigElement(self.nimConfig.connectedTo, ConfigSelection(choices = choices))
+ self.nimConfig.connectedTo.setChoices(choices)
+ #self.nimConfig.connectedTo = updateConfigElement(self.nimConfig.connectedTo, ConfigSelection(choices = choices))
self.list.append(getConfigListEntry(_("Tuner"), self.nimConfig.connectedTo))
elif self.nimConfig.configMode.value == "satposdepends":
choices = []
@@ -106,7 +107,8 @@ class NimSetup(Screen, ConfigListScreen):
for id in nimlist:
#choices.append((str(id), str(chr(65 + id))))
choices.append((str(id), nimmanager.getNimDescription(id)))
- self.nimConfig.connectedTo = updateConfigElement(self.nimConfig.connectedTo, ConfigSelection(choices = choices))
+ self.nimConfig.connectedTo.setChoices(choices)
+ #self.nimConfig.connectedTo = updateConfigElement(self.nimConfig.connectedTo, ConfigSelection(choices = choices))
self.list.append(getConfigListEntry(_("Tuner"), self.nimConfig.connectedTo))
elif self.nimConfig.configMode.value == "loopthrough":
choices = []
@@ -114,7 +116,8 @@ class NimSetup(Screen, ConfigListScreen):
connectable = nimmanager.canConnectTo(self.slotid)
for id in connectable:
choices.append((str(id), nimmanager.getNimDescription(id)))
- self.nimConfig.connectedTo = updateConfigElement(self.nimConfig.connectedTo, ConfigSelection(choices = choices))
+ self.nimConfig.connectedTo.setChoices(choices)
+ #self.nimConfig.connectedTo = updateConfigElement(self.nimConfig.connectedTo, ConfigSelection(choices = choices))
self.list.append(getConfigListEntry(_("Connected to"), self.nimConfig.connectedTo))
elif self.nimConfig.configMode.value == "nothing":
pass