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 54533ebef361dd3f39e2a50926a15c7179425d37..9dbf030d9d68518ffcd41d6776131c6039fd7e6c 100644 (file)
@@ -30,7 +30,7 @@ self["rc"].startMoving()
                <step id="nima">
                        <condition>
 from Components.NimManager import nimmanager
                <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" />
                        </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
                <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" />
                        </condition>
                        <text value="Please set up tuner B" />
                        <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />