version = getFPVersion()
newversion = getUpgradeVersion() or 0
if version is not None and version < newversion:
- return PluginDescriptor(name="FP Upgrade", where = PluginDescriptor.WHERE_WIZARD, fnc=FPUpgrade)
+ return PluginDescriptor(name="FP Upgrade", where = PluginDescriptor.WHERE_WIZARD, fnc=(8, FPUpgrade))
else:
return [ ]
PluginDescriptor(name=_("Video Setup"), description=_("Advanced Video Setup"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup)
]
if config.misc.firstrun.value:
- list.append(PluginDescriptor(name=_("Video Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=VideoWizard))
+ list.append(PluginDescriptor(name=_("Video Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=(0, VideoWizard)))
return list
def markDone(self):
pass
-wizardManager.registerWizard(ImageWizard, backupAvailable)
+wizardManager.registerWizard(ImageWizard, backupAvailable, priority = 10)
def doBackup(path):
os.system('tar cvpf ' + path + backupfile + ' /etc/enigma2')
config.misc.firstrun.save()
configfile.save()
-wizardManager.registerWizard(LanguageSelection, config.misc.languageselected.value)
+wizardManager.registerWizard(LanguageSelection, config.misc.languageselected.value, priority = 5)
#wizardManager.registerWizard(DefaultWizard, config.misc.defaultchosen.value)
-wizardManager.registerWizard(StartWizard, config.misc.firstrun.value)
-
+wizardManager.registerWizard(StartWizard, config.misc.firstrun.value, priority = 20)
config.misc.firstruntutorial.value = False
config.misc.firstruntutorial.save()
-#wizardManager.registerWizard(TutorialWizard, config.misc.firstruntutorial.value)
+#wizardManager.registerWizard(TutorialWizard, config.misc.firstruntutorial.value, priority = 30)
def __init__(self):
self.wizards = []
- def registerWizard(self, wizard, precondition):
- self.wizards.append((wizard, precondition))
+ def registerWizard(self, wizard, precondition, priority = 0):
+ self.wizards.append((wizard, precondition, priority))
def getWizards(self):
list = []
for x in self.wizards:
if x[1] == 1: # precondition
- list.append(x[0])
+ list.append((x[2], x[0]))
return list
wizardManager = WizardManager()
profile("wizards")
screensToRun += wizardManager.getWizards()
- screensToRun.append(Screens.InfoBar.InfoBar)
+ screensToRun.append((100, Screens.InfoBar.InfoBar))
+
+ screensToRun.sort()
ePythonConfigQuery.setQueryFunc(configfile.getResolvedKey)
quitMainloop(*result)
return
- screen = screensToRun[0]
+ screen = screensToRun[0][1]
if len(screensToRun):
session.openWithCallback(boundFunction(runNextScreen, session, screensToRun[1:]), screen)