The device rows already render a "Disconnect" button when a device is connected, but the list only rebuilt on adapter-level notify::devices / notify::is-powered — not on per-device state changes. So a device connected (via the menu or elsewhere) while the menu was open kept its "Connect" button and offered no way to disconnect. Hook each device's notify::connected/connecting/paired (once each) to refresh the list, so a connected device flips to "Disconnect". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XUWCXM4KhjRkwheaA3X7bP |
||
|---|---|---|
| .. | ||
| bluetooth.py | ||
| location.py | ||
| network.py | ||
| weather.py | ||