Pre-initialize JavaFX
This commit is contained in:
parent
de20963b49
commit
67bbfe904b
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue