mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Improve side window modality
This commit is contained in:
parent
404a6e1948
commit
ce45ff9ec6
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue