git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a 'priority' for wizard screens to define the run order
[enigma2.git]
/
lib
/
python
/
Screens
/
Wizard.py
diff --git
a/lib/python/Screens/Wizard.py
b/lib/python/Screens/Wizard.py
index e574f861b2f4ffba36c6a39dd6312bacfaaaf27c..1b133152f61ea38e28e81938a2ee2d53582e7cac 100644
(file)
--- a/
lib/python/Screens/Wizard.py
+++ b/
lib/python/Screens/Wizard.py
@@
-459,14
+459,14
@@
class WizardManager:
def __init__(self):
self.wizards = []
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
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()
return list
wizardManager = WizardManager()