mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Fixed Skeleton Viewer not closing in some cases.
This commit is contained in:
parent
57b985a382
commit
537978eb0a
@ -352,6 +352,11 @@ public class SkeletonViewer extends ApplicationAdapter {
|
|||||||
if (!ui.minimizeButton.isChecked()) ui.window.setHeight(height / uiScale + 8);
|
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 {
|
static public void main (String[] args) throws Exception {
|
||||||
try { // Try to turn off illegal access log messages.
|
try { // Try to turn off illegal access log messages.
|
||||||
Class loggerClass = Class.forName("jdk.internal.module.IllegalAccessLogger");
|
Class loggerClass = Class.forName("jdk.internal.module.IllegalAccessLogger");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user