Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix repeated macro buttons in selection panel #3978

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Apr 19, 2023

Identify the Bug or Feature request

Fixes #3977

Description of the Change

Some of the events that SelectionPanel handles are fired off the Swing thread, resulting in unexpected code flow. This PR changes those event handlers to run on the Swing thread, and does the same for the other macro panels.

Possible Drawbacks

Should be none.

Documentation Notes

N/A

Release Notes

  • Fixed a bug where macro buttons would be added to the selection panel twice.

This change is Reviewable

The `SelectionPanel` is now only registered once as a subscriber. Each event handler method now runs on the Swing thread
to ensure consistency.
@cwisniew cwisniew merged commit 63185e8 into RPTools:release-1.13 Apr 19, 2023
@kwvanderlinde kwvanderlinde deleted the bugfix/3977-repeated-macros-in-selection-panel branch April 19, 2023 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants