Skip to content

Commit

Permalink
Merge pull request #60 from poncovka/master-password_dialog
Browse files Browse the repository at this point in the history
Always close the password dialog
  • Loading branch information
jkonecny12 authored Aug 1, 2019
2 parents b61121f + b24fd67 commit fcaa82a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions simpleline/render/adv_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,13 @@ def prompt(self, args=None):
return None

self._password = handler.value
if not self._password:
return None
else:
# this may seem innocuous, but it's really a giant hack; we should
# not be calling close() from prompt(), but the input handling code
# in the TUI is such that without this very simple workaround, we
# would be forever pelting users with a prompt to enter their pw
self.close()

# this may seem innocuous, but it's really a giant hack; we should
# not be calling close() from prompt(), but the input handling code
# in the TUI is such that without this very simple workaround, we
# would be forever pelting users with a prompt to enter their pw
self.close()
return None

@property
def answer(self):
Expand Down

0 comments on commit fcaa82a

Please sign in to comment.