Handle empty mountpoint input (#4388)

This commit is contained in:
Daniel Girtler 2026-04-07 21:54:18 +10:00 committed by GitHub
parent d57709cb2f
commit f37ae8b282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -825,6 +825,12 @@ class InputScreen(BaseScreen[str]):
self.query_one('#input-failure', Label).update(failure_out)
else:
input_value = event.value
if not input_value and not self._allow_skip:
self.query_one('#input-failure', Label).update(tr('Input cannot be empty'))
return
_ = self.dismiss(Result(ResultType.Selection, _data=event.value))
def on_input_changed(self, event: Input.Changed) -> None: