Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions archinstall/tui/curses_menu.py
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've been testing for quite a while.
and i found this to solve my issue with input persistancy.

there could be better solutions out there.
but i couldn't get _current_text to persist with the previewed value.

i also tested it in the other inputs and it seems to not effect them.

Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,10 @@ def _get_input_text(self) -> str | None:
entry = ViewportEntry(err, 0, 0, STYLE.ERROR)
self._info_vp.update([entry], 0)
self._set_default_info = False
self._real_input = ''

if self._hide_input:
self._real_input = ''

return None

return text
Expand All @@ -586,7 +589,7 @@ def _draw(self) -> None:
if self._set_default_info and self._info_vp:
self._info_vp.update([self._only_ascii_text], 0)

self._input_vp.edit(default_text=self._current_text)
self._input_vp.edit(default_text=self._real_input)

@override
def kickoff(self, win: curses.window) -> Result[str]:
Expand Down
Loading