Skip to content

Commit

Permalink
Use event dispatch thread to update UI when Carabiner vanishes.
Browse files Browse the repository at this point in the history
  • Loading branch information
brunchboy committed Oct 7, 2024
1 parent a5538af commit e70ceda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ This change log follows the conventions of
Thanks to [Deniz Gencer, @Firedude1](https://github.com/Firedude1)
who noticed it was thrashing his GPU and reported this.
- An error in the helper code for user expressions caused an exception when attempting to use the `track-length` convenience variable with real (but not simulated) events.
- The code for handling an abrupt disconnection from the Carabiner daemon was trying to update the user interface on the wrong thread.

## [7.4.1] - 2024-06-01

Expand Down
3 changes: 2 additions & 1 deletion src/beat_link_trigger/carabiner.clj
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@
"Carabiner unexpectedly closed our connection; is it still running?"
"Carabiner Connection Closed"
javax.swing.JOptionPane/WARNING_MESSAGE)))
(seesaw/value! (seesaw/select @carabiner-window [:#sync-mode]) "Off")
(seesaw/invoke-later
(seesaw/value! (seesaw/select @carabiner-window [:#sync-mode]) "Off"))
(update-connected-status)
(update-link-status (beat-carabiner/state))))

Expand Down

0 comments on commit e70ceda

Please sign in to comment.