Skip to content

Commit f37ae8b

Browse files
authored
Handle empty mountpoint input (#4388)
1 parent d57709c commit f37ae8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

archinstall/tui/ui/components.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,12 @@ def on_input_submitted(self, event: Input.Submitted) -> None:
825825

826826
self.query_one('#input-failure', Label).update(failure_out)
827827
else:
828+
input_value = event.value
829+
830+
if not input_value and not self._allow_skip:
831+
self.query_one('#input-failure', Label).update(tr('Input cannot be empty'))
832+
return
833+
828834
_ = self.dismiss(Result(ResultType.Selection, _data=event.value))
829835

830836
def on_input_changed(self, event: Input.Changed) -> None:

0 commit comments

Comments
 (0)