Skip to content

Commit 24a7a4d

Browse files
poncovkajkonecny12
authored andcommitted
Always close the password dialog
The password dialog should be closed even if no password is provided. Otherwise, it is not possible to continue, because the UI is blocked. (cherry picked from commit b24fd67) Resolves: rhbz#2125272
1 parent 4e9fe8c commit 24a7a4d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

simpleline/render/adv_widgets.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,13 @@ def prompt(self, args=None):
8787
return None
8888

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

9998
@property
10099
def answer(self):

0 commit comments

Comments
 (0)