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 for html notes being copied to new token dialog text area #4055

Merged
merged 1 commit into from
May 11, 2023

Conversation

cwisniew
Copy link
Member

@cwisniew cwisniew commented May 11, 2023

Identify the Bug or Feature request

Fixes #4039

Description of the Change

The HTML version of notes is being set in the JavaFX thread whilst changing the tab (and subsequent change event happens in the Swing thread) as the update to HTML control is run via Platform.runLater() its likely that the HTML control will contain stale content at the time of the change event, which is copied into the non-HTML notes.

This change makes sure that the type is set (and therefore will change tab if required) before the notes are updated, which ensures that the information in them is the current and correct values.

I am not enamoured with the solution as it's working around rather than fixing a bug but it works and I think is acceptable for now.

Possible Drawbacks

Hopefully none, other than its still possible to recreate the bug if adding code dealing with a new way to edit notes.

Documentation Notes

Fix the bug where clicking cancel on a token while displaying the HTML token notes could copy that value into the next token if it did not have HTML note type.

Release Notes

  • Fix the bug where clicking cancel on a token while displaying the HTML token notes could copy that value into the next token if it did not have HTML note type.

This change is Reviewable

@cwisniew cwisniew merged commit 85ef04d into RPTools:release-1.13 May 11, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants