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

ExternalChangeScanner bug fixes and improvement #444

Merged
merged 2 commits into from
Dec 28, 2022

Conversation

neph1
Copy link
Contributor

@neph1 neph1 commented Dec 27, 2022

New feature:
Remember this option for ExternalChangeScanner. Fixes #343
Bug fixes:
Exception for not executing on awt thread
Handling closing window without selecting an option
Screenshot from 2022-12-27 15-53-48

Remember this option for ExternalChangeScanner
Bug fixes:
Exception for not executing on awt thread
Handling closing window without selecting an option
@@ -173,12 +208,16 @@ private void applyExternalData(final boolean onlyMeshData,
new CopyMaterialDataFromOriginal(finder).update(spat, original);
}
// Do a complicated recurse refresh since AbstractSceneExplorerNode:refresh() isn't working
SceneApplication.getApplication().enqueue((Runnable) () -> {
SwingUtilities.invokeLater(() -> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This solves an exception I don't remember seeing before

LOGGER.log(Level.INFO, "Saving selection "
+ "{0}", savedOption);
}
if (message.getValue().equals(cancel) || message.getValue().equals(noOption)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously didn't handle pressing the "x" to close the window.

@neph1
Copy link
Contributor Author

neph1 commented Dec 28, 2022

Let me know if anyone wants to test this, or I'll merge it "soon"

@neph1 neph1 merged commit dff0daf into jMonkeyEngine:master Dec 28, 2022
@neph1 neph1 deleted the ExternalScanner_remember_option branch May 6, 2023 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Remember this option" feature when applying changes
1 participant