1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 05:48:01 -05:00

Pre-initialize JavaFX

This commit is contained in:
Reinhard Pointner 2016-05-10 21:20:43 +08:00
parent de20963b49
commit 67bbfe904b

View File

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