tilmanginzel / alfred-bluetooth-workflow

Yet another Alfred workflow to connect / disconnect Bluetooth devices
MIT License
189 stars 8 forks source link

Notification says device is connected while it is not #13

Closed tilmanginzel closed 4 years ago

tilmanginzel commented 4 years ago

This reverts https://github.com/tilmanginzel/alfred-bluetooth-workflow/commit/a764befa58bbdc6c969e9c54c7c0fce5a5edb12a and the consequence of invalid notification results.

The exit code of both blueutil --connect and blueutil --is-connected sometimes can yield incorrect results. As a fix we wait a second before checking the connection status.

@trietsch In case you want to review :)

trietsch commented 4 years ago

This one also looks good. Would be good to merge this one first and then #14