Add EvMenu support for ending on start node.

Currently, if the start node has options of None then any input causes a "Choose an option or try 'help'." message to display and then ending the menu. This supports ending the menu without eating input.
This commit is contained in:
CloudKeeper1 2017-07-26 23:53:53 +10:00 committed by GitHub
parent 24c5ddecab
commit c8131eab80

View file

@ -855,6 +855,8 @@ class EvMenu(object):
self.helptext = _HELP_NO_OPTIONS if self.auto_quit else _HELP_NO_OPTIONS_NO_QUIT
self.display_nodetext()
if not options:
self.close_menu()
def close_menu(self):
"""