Merge remote branch 'remotes/origin/bug_593_i2c_device_from_file'
[enigma2.git] / data / startwizard.xml
index 8fcf8f41cefba11d893aa34843dd111d4e8ff13f..70a6e0dc368aa53b44478950527d2a6eef318a35 100644 (file)
@@ -73,7 +73,8 @@ self.selectKey("RIGHT")
                <step id="satlistsquestion">
                        <text value="Do you want to install default sat lists?" />
                        <condition>
-self.condition = config.misc.startwizard.doservicescan.value
+from Components.NimManager import nimmanager
+self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
                        </condition>
                        <code>
 self.hideRc()
@@ -87,7 +88,8 @@ self.hideRc()
                <step id="scanquestion">
                        <text value="Do you want to do a service scan?" />
                        <condition>
-self.condition = config.misc.startwizard.doservicescan.value
+from Components.NimManager import nimmanager
+self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
                        </condition>
                        <code>
 self.hideRc()
@@ -100,21 +102,24 @@ self.hideRc()
                </step>
                <step id="scan" nextstep="finisheddefaultsatlists">
                        <condition>
-self.condition = config.misc.startwizard.doservicescan.value
+from Components.NimManager import nimmanager
+self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
                        </condition>                    
                        <text value="What do you want to scan?" />
                        <config screen="ScanSimple" module="ScanSetup" type="ConfigList" />
                </step>
                <step id="manualscan">
                        <condition>
-self.condition = config.misc.startwizard.doservicescan.value
+from Components.NimManager import nimmanager
+self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
                        </condition>
                        <text value="What do you want to scan?" />
                        <config screen="ScanSetup" module="ScanSetup" type="ConfigList" />
                </step>
                <step id="nextscan">
                        <condition>
-self.condition = config.misc.startwizard.doservicescan.value
+from Components.NimManager import nimmanager
+self.condition = config.misc.startwizard.doservicescan.value and nimmanager.somethingConnected()
                        </condition>
                        <text value="Do you want to do another manual service scan?" />
                        <list>
@@ -160,7 +165,10 @@ config.ParentalControl.setuppin.save()
 
                        <text value="After the start wizard is completed, you need to protect single services. Refer to your dreambox's manual on how to do that." />
                </step>
-               <step id="end">
+               <step id="end" laststep="true">
+                       <condition>
+self.condition = self.isLastWizard
+                       </condition>
                        <text value="Thank you for using the wizard. Your box is now ready to use.\nPlease press OK to start using your Dreambox." />
                </step>
 </wizard>