Skip to content

fix(scanning): make first discovered device actionable#150

Merged
pythops merged 1 commit into
pythops:masterfrom
0xferrous:fix-selection
Jul 17, 2026
Merged

fix(scanning): make first discovered device actionable#150
pythops merged 1 commit into
pythops:masterfrom
0xferrous:fix-selection

Conversation

@0xferrous

Copy link
Copy Markdown
Contributor

Pressing Enter on the first device in the scanning pane did nothing until the selection was moved down and back up.

TableState implements Copy, so the initial selection was applied only to an independent local copy used for rendering. The row appeared selected, but the pairing handler still saw no selected device.

Persist the initial selection in new_devices_state and only select row zero when at least one device exists.

Pressing Enter on the first device in the scanning pane did nothing until
the selection was moved down and back up.

TableState implements Copy, so the initial selection was applied only to an
independent local copy used for rendering. The row appeared selected, but
the pairing handler still saw no selected device.

Persist the initial selection in new_devices_state and only select row zero
when at least one device exists.
@0xferrous

Copy link
Copy Markdown
Contributor Author

I suspect this is the correct fix for #135

@0xferrous

Copy link
Copy Markdown
Contributor Author

Also a release would be nice :)

@pythops pythops left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

lgtm

@pythops
pythops requested a review from sermuns July 17, 2026 17:56
@pythops
pythops merged commit d9f923d into pythops:master Jul 17, 2026
2 checks passed
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.

2 participants