[libgdx] Fixed Skeleton Viewer not closing in some cases.

This commit is contained in:
Nathan Sweet 2022-09-13 18:07:49 -04:00
parent 57b985a382
commit 537978eb0a

View File

@ -352,6 +352,11 @@ public class SkeletonViewer extends ApplicationAdapter {
if (!ui.minimizeButton.isChecked()) ui.window.setHeight(height / uiScale + 8);
}
public void dispose () {
super.dispose();
Runtime.getRuntime().exit(0);
}
static public void main (String[] args) throws Exception {
try { // Try to turn off illegal access log messages.
Class loggerClass = Class.forName("jdk.internal.module.IllegalAccessLogger");