Support hidden actions
This commit is contained in:
parent
a3714dec6f
commit
49983fa4e1
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue