Support hidden actions

This commit is contained in:
2Shirt 2019-05-28 20:23:56 -06:00
parent a3714dec6f
commit 49983fa4e1
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -82,6 +82,10 @@ class MenuState():
)
valid_answers.pop(_prefix)
# Hide action entry if necessary
if details['Kind'] == 'Action' and details.get('Hidden', False):
display_list.pop()
# Show Menu and make selection
_answer = ''
while _answer.upper() not in valid_answers: