Pass Launcher.class to Application.launch

This commit is contained in:
Glavo authored and Yuhui Huang committed 2021-10-22 14:16:25 +08:00
1 parent fb9a6fd314
commit 06d0fa6e22
1 file changed
+1 -1
@@ -122,7 +122,7 @@ public final class Launcher extends Application {
ManagementFactory.getMemoryPoolMXBeans().stream().filter(bean -> bean.getName().equals("Metaspace")).findAny()
.ifPresent(bean -> LOG.info("Metaspace: " + bean.getUsage().getUsed() / 1024 / 1024 + "MB"));
launch(args);
launch(Launcher.class, args);
} catch (Throwable e) { // Fucking JavaFX will suppress the exception and will break our crash reporter.
CRASH_REPORTER.uncaughtException(Thread.currentThread(), e);
}