1
0
mirror of https://github.com/aNNiMON/HotaruFX.git synced 2024-09-19 14:14:21 +03:00

Allow only one preview window

This commit is contained in:
Victor 2017-09-07 18:52:33 +03:00
parent 298dc0d285
commit b788941c3d

View File

@ -147,6 +147,8 @@ public class EditorController implements Initializable, DocumentListener {
logPane.setExpanded(true); logPane.setExpanded(true);
return; return;
} }
stage.initOwner(primaryStage);
stage.initModality(Modality.WINDOW_MODAL);
stage.setScene(composition.produceAnimationScene()); stage.setScene(composition.produceAnimationScene());
composition.getTimeline().getFxTimeline().play(); composition.getTimeline().getFxTimeline().play();
stage.show(); stage.show();