Made evmenu stop echoing 'None' when ending the menu with a None, None return from the node.
This commit is contained in:
parent
ea1e88cbe9
commit
910d539d45
1 changed files with 1 additions and 1 deletions
|
|
@ -721,7 +721,7 @@ class EvMenu(object):
|
||||||
nodetext, helptext = nodetext[:2]
|
nodetext, helptext = nodetext[:2]
|
||||||
else:
|
else:
|
||||||
nodetext = nodetext[0]
|
nodetext = nodetext[0]
|
||||||
nodetext = str(nodetext) or ""
|
nodetext = "" if nodetext is None else str(nodetext)
|
||||||
options = [options] if isinstance(options, dict) else options
|
options = [options] if isinstance(options, dict) else options
|
||||||
|
|
||||||
# this will be displayed in the given order
|
# this will be displayed in the given order
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue