Skip to content

Commit

Permalink
initialize javafx only as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Mar 29, 2022
1 parent 8de0c36 commit b848fdf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static void fail() {
*/
@SuppressWarnings("unchecked")
public static void main(String[] args) throws Exception {
JavaFXInitializer.go();
//JavaFXInitializer.go();
ScriptingEngine.waitForLogin();
if (args.length == 0) {
fail();
Expand Down Expand Up @@ -157,7 +157,7 @@ public static void main(String[] args) throws Exception {
fail();
}
}
if (s.contains("script") || s.contains("-s")) {
if (s.contains("script") || s.contains("-f")|| s.contains("-s")) {
startLoadingScripts = true;
}
}
Expand Down

0 comments on commit b848fdf

Please sign in to comment.