Skip to content

Fix WiFi network selection in TUI prompt#4566

Open
Softer wants to merge 2 commits into
archlinux:masterfrom
Softer:fix-wifi-prompt
Open

Fix WiFi network selection in TUI prompt#4566
Softer wants to merge 2 commits into
archlinux:masterfrom
Softer:fix-wifi-prompt

Conversation

@Softer
Copy link
Copy Markdown
Contributor

@Softer Softer commented Jun 3, 2026

TableSelectionScreen returns selected item in Result._item, but wifi_handler.py checked only Result._data (via has_data()), which is always None for single-select mode.
Every WiFi network selection fell through to the "No wifi networks found" error path, making WiFi setup completely broken.

Fix: check both has_value() and has_data() before treating the result as empty

Fixes #4564

Softer added 2 commits June 3, 2026 16:19
TableSelectionScreen returns the selected network in Result._item,
but the check on line 136 only tested Result._data (always None
for single-select). This caused every selection to fall through
to the "No wifi networks found" error path.

Fixes archlinux#4564
@Softer Softer requested a review from Torxed as a code owner June 3, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prompt to connect to a WiFi network if not already does not work

1 participant