Skip to content

Commit

Permalink
Merge pull request #30 from jonastheis/master
Browse files Browse the repository at this point in the history
Fix issue when disconnecting device on Apple Silicon
  • Loading branch information
tilmanginzel authored Dec 27, 2021
2 parents 3bb2920 + 065c7f2 commit dd11024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.11.1</string>
<string>0.11.2</string>
<key>webaddress</key>
<string>https://github.com/tilmanginzel/alfred-bluetooth-workflow</string>
</dict>
Expand Down
3 changes: 1 addition & 2 deletions scripts/blt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ TITLE=$2

if [[ $(../blueutil --is-connected ${DEVICE}) -eq 1 ]]
then
../blueutil --disconnect ${DEVICE}
../blueutil --wait-disconnect ${DEVICE} 5
../blueutil --disconnect ${DEVICE} --wait-disconnect ${DEVICE} 5
if [[ $(../blueutil --is-connected ${DEVICE}) -eq 0 ]]
then
./notify.sh -m "Disconnected from ${TITLE}"
Expand Down

0 comments on commit dd11024

Please sign in to comment.