Pre-initialize JavaFX

This commit is contained in:
Reinhard Pointner 2016-05-10 21:20:43 +08:00
parent de20963b49
commit 67bbfe904b
1 changed files with 9 additions and 9 deletions

View File

@ -145,15 +145,6 @@ public class Main {
debug.log(Level.WARNING, "Failed to initialize JavaFX", e);
}
// check for application updates
if (!"skip".equals(System.getProperty("application.update"))) {
try {
checkUpdate();
} catch (Throwable e) {
debug.log(Level.WARNING, "Failed to check for updates", e);
}
}
// check if application help should be shown
if (!"skip".equals(System.getProperty("application.help"))) {
try {
@ -162,6 +153,15 @@ public class Main {
debug.log(Level.WARNING, "Failed to show Getting Started help", e);
}
}
// check for application updates
if (!"skip".equals(System.getProperty("application.update"))) {
try {
checkUpdate();
} catch (Throwable e) {
debug.log(Level.WARNING, "Failed to check for updates", e);
}
}
} catch (CmdLineException e) {
// illegal arguments => print CLI error message
System.err.println(e.getMessage());