more fix
This commit is contained in:
parent
d0a310a31a
commit
f32d56a00d
@ -30,10 +30,9 @@ class vmenuManager():
|
|||||||
try:
|
try:
|
||||||
t = self.menuDict[currMenu]
|
t = self.menuDict[currMenu]
|
||||||
l = list(menuDict.keys())
|
l = list(menuDict.keys())
|
||||||
|
self.currIndex = [l.index(currMenu)]
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.currIndex = [l.index(currMenu)]
|
|
||||||
self.currMenu = currMenu
|
self.currMenu = currMenu
|
||||||
def getCurrMenu(self):
|
def getCurrMenu(self):
|
||||||
return self.currMenu
|
return self.currMenu
|
||||||
@ -87,8 +86,13 @@ class vmenuManager():
|
|||||||
if not command == None:
|
if not command == None:
|
||||||
command.run()
|
command.run()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
try:
|
||||||
self.incLevel()
|
self.incLevel()
|
||||||
|
text = self.getCurrentEntry()
|
||||||
|
self.env['runtime']['outputManager'].presentText(text, interrupt=True)
|
||||||
|
except:
|
||||||
|
print(e)
|
||||||
|
|
||||||
def incLevel(self):
|
def incLevel(self):
|
||||||
if self.currIndex == None:
|
if self.currIndex == None:
|
||||||
return
|
return
|
||||||
@ -105,7 +109,7 @@ class vmenuManager():
|
|||||||
if self.currIndex == None:
|
if self.currIndex == None:
|
||||||
return
|
return
|
||||||
if self.currMenu != '':
|
if self.currMenu != '':
|
||||||
if len(self.currIndex) == 2:
|
if len(self.currIndex) <= 2:
|
||||||
return
|
return
|
||||||
elif len(self.currIndex) == 1:
|
elif len(self.currIndex) == 1:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user