Fix WiFi network selection in TUI prompt

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 #4564
This commit is contained in:
Softer 2026-06-03 19:27:42 +03:00
parent 23ff97c2d3
commit 14ded81f8e
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class WifiHandler(InstanceRunnable[bool]):
match result.type_:
case ResultType.Selection:
if not result.has_data():
if not result.has_value() and not result.has_data():
debug('No networks found')
await NotifyScreen(header=tr('No wifi networks found')).run()
tui.exit(Result.false())