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

This commit is contained in:
alfrix committed 2024-03-20 22:01:30 -03:00
1 parent 877c477723
commit b98bcf857c
1 file changed
+2 -1
+2 -1
View File
@@ -44,7 +44,8 @@ class Prompt:
self.set_button(*params)
return
elif data == 'prompt_show':
self.show()
if not self.prompt:
self.show()
return
elif data == 'prompt_end':
self.end()