prompts: fix a potential issue if the user sends multiple show commands in succession

This commit is contained in:
alfrix 2024-03-20 10:13:36 -03:00
parent 877c477723
commit b98bcf857c

View File

@ -44,6 +44,7 @@ class Prompt:
self.set_button(*params) self.set_button(*params)
return return
elif data == 'prompt_show': elif data == 'prompt_show':
if not self.prompt:
self.show() self.show()
return return
elif data == 'prompt_end': elif data == 'prompt_end':