don't display tuner setup for empty tuner slots
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 29 Jun 2006 17:24:04 +0000 (17:24 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 29 Jun 2006 17:24:04 +0000 (17:24 +0000)
data/startwizard.xml

index 54533eb..9dbf030 100644 (file)
@@ -30,7 +30,7 @@ self["rc"].startMoving()
                <step id="nima">
                        <condition>
 from Components.NimManager import nimmanager
-self.condition = nimmanager.nimCount > 0
+self.condition = nimmanager.getNimType(0) != nimmanager.nimType["empty/unknown"]
                        </condition>
                        <text value="Use the left and right buttons to change an option.\n\nPlease set up tuner A" />
                        <config screen="NimSetup" module="Satconfig" args="0" type="ConfigList" />
@@ -48,7 +48,7 @@ self["arrowdown"].startMoving()
                <step id="nimb">
                        <condition>
 from Components.NimManager import nimmanager
-self.condition = nimmanager.nimCount > 1
+self.condition = nimmanager.getNimType(1) != nimmanager.nimType["empty/unknown"]
                        </condition>
                        <text value="Please set up tuner B" />
                        <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />