Fix window field is not assigned
@@ -152,8 +152,8 @@ public class MainWindow extends Application {
*/
public static MainWindow get(GuiController controller) {
if(window == null) {
+ MainWindow app = window = new MainWindow(controller);
PlatformImpl.startup(() -> {
- MainWindow app = new MainWindow(controller);
Stage stage = new Stage();
try {
app.start(stage);
