Made evmenu stop echoing 'None' when ending the menu with a None, None return from the node.

This commit is contained in:
Griatch 2016-04-24 20:48:48 +02:00
parent ea1e88cbe9
commit 910d539d45

View file

@ -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