Improve side window modality

This commit is contained in:
crschnick 2024-01-30 10:54:01 +00:00
parent 404a6e1948
commit ce45ff9ec6

View file

@ -64,6 +64,10 @@ public class AppWindowHelper {
String title, Function<Stage, Comp<?>> contentFunc, boolean bindSize, ObservableValue<Boolean> loading) {
var stage = new Stage();
stage.setTitle(title);
if (AppMainWindow.getInstance() != null) {
stage.initOwner(AppMainWindow.getInstance().getStage());
}
addIcons(stage);
setupContent(stage, contentFunc, bindSize, loading);
setupStylesheets(stage.getScene());