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

CSSTUDIO-2880 Run refresh() atomically on the UI thread. #3215

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

abrahamwolk
Copy link
Collaborator

@abrahamwolk abrahamwolk commented Dec 18, 2024

This pull request changes LogEntryTableViewController.refresh() so that it runs "atomically" on the UI thread.

Before this pull request, the code to select the previously selected item was run using Platform.runLater(), which resulted in a brief period of time where no item was selected in the table view. When refresh() was called in quick succession, this could cause the selected item to become not selected upon refresh.

… since the function now always runs on the UI thread.
@shroffk shroffk merged commit 3c0fbd1 into master Dec 18, 2024
2 checks passed
@shroffk shroffk deleted the CSSTUDIO-2880 branch December 18, 2024 14:58
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.

3 participants