X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b6748e04393c47c18453c2d2fda88e315aa9d55d..5bc8209d19e1d41f289cfe198e4e3a839adf894b:/lib/python/Screens/Wizard.py diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index e574f861..1b133152 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -459,14 +459,14 @@ class WizardManager: 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()