Skip to content

feat(gui): show bluetooth connection status on device selection screen - #375

Open
afrijaldz wants to merge 1 commit into
Oppzippy:masterfrom
afrijaldz:feat/gui-connection-status
Open

afrijaldz wants to merge 1 commit into
Oppzippy:masterfrom
afrijaldz:feat/gui-connection-status

Conversation

@afrijaldz

Copy link
Copy Markdown

Summary

On the device selection screen there was no way to tell whether a paired device is actually connected to the bluetooth adapter — every device just had a "Connect" button, and the only feedback was an error after a failed connection attempt.

Each paired device now shows Connected (accent color) or Not Connected next to the buttons:

device selection with connection status

  • Adds OpenSCQ30Session::list_connected_devices() (and _with_backends) which returns RfcommBackend::devices() for the default backends, independent of device model.
  • The status is refreshed every 3 seconds via a subscription that is only active while the device selection screen is shown.
  • If listing fails (e.g. bluetooth turned off, no adapter) the status is hidden rather than surfacing a warning every 3 seconds; the error is logged at debug level.
  • Demo devices don't show a status.
  • Two new strings in gui/i18n/en: bluetooth-connected, bluetooth-not-connected.

Testing

Tested with a Soundcore R50i: status shows "Connected" while the earbuds are connected. I only have the macOS backend from #374 to test with locally, but the change itself is platform-independent — it only uses the existing RfcommBackend::devices(), which on all backends returns connected devices only.

Happy to adjust the layout/wording if you'd prefer something else (e.g. an icon or a badge instead of text).

The device list only had a "Connect" button, so there was no way to tell
whether a device is actually connected to the bluetooth adapter before
trying to connect to it. Each paired device now shows "Connected" or
"Not Connected", refreshed every 3 seconds while on that screen.

Adds OpenSCQ30Session::list_connected_devices, which lists connected
devices regardless of model. Failures while refreshing (such as bluetooth
being turned off) just hide the status rather than showing a warning.
Demo devices never show a status.
sanjaymalladi added a commit to sanjaymalladi/OpenSCQ30 that referenced this pull request Oct 13, 2026
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.

1 participant