azymohliad / watchmate

PineTime smart watch companion app for Linux phone and desktop
GNU General Public License v3.0
136 stars 4 forks source link

Flickering UI when re-openning devices view while attempting to connect to unavailable cached device #63

Open azymohliad opened 4 months ago

azymohliad commented 4 months ago

Steps to reproduce:

  1. Connect to PineTime, make sure it's selected for auto-reconnection.
  2. Disable the bluetooth on PineTime, so that Watchmate looses it, but attempts to reconnect while bluez keeps it cached. The connection attempt takes a long time here.
  3. Switch to main view (away from Devices view).
  4. Switch back to Devices view, so that Watchmate start a new discovery session.
  5. Now Watchmate will stuck in a fast loop of detecting saved device, attempting to connect to it, immediately failing as the operation is already in progress, restarting discovery.

Found it today, but didn't immediately see a good solution. Will fix soon