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:
parent
23ff97c2d3
commit
14ded81f8e
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue