Skip to content

Commit acf7f63

Browse files
committed
kernel
1 parent d3556dc commit acf7f63

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/BowlerStudio.java

+9-3
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,13 @@ public void start(Stage primaryStage) {
851851
// mainControllerPanel.setClassLoader(BowlerStudioModularFrame.class.getClassLoader());
852852
try {
853853
renderSplashFrame(96, "Controller load");
854-
855-
mainControllerPanel.load();
854+
BowlerStudio.runLater(() -> {
855+
try {
856+
mainControllerPanel.load();
857+
} catch (IOException e) {
858+
throw new RuntimeException(e);
859+
}
860+
});
856861
} catch (Exception e) {
857862
reporter.uncaughtException(Thread.currentThread(), e);
858863

@@ -861,7 +866,8 @@ public void start(Stage primaryStage) {
861866

862867
Parent root = mainControllerPanel.getRoot();
863868
FontSizeManager.addListener(fontNum->{
864-
BowlerStudioController.getBowlerStudio().setFontSize(fontNum);
869+
BowlerStudioController bowlerStudio = BowlerStudioController.getBowlerStudio();
870+
bowlerStudio.setFontSize(fontNum);
865871
double tmp = FontSizeManager.getImageScale()*9;
866872

867873
root.setStyle("-fx-font-size: "+((int)tmp)+"pt");

0 commit comments

Comments
 (0)