mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +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) {
|
String title, Function<Stage, Comp<?>> contentFunc, boolean bindSize, ObservableValue<Boolean> loading) {
|
||||||
var stage = new Stage();
|
var stage = new Stage();
|
||||||
stage.setTitle(title);
|
stage.setTitle(title);
|
||||||
|
if (AppMainWindow.getInstance() != null) {
|
||||||
|
stage.initOwner(AppMainWindow.getInstance().getStage());
|
||||||
|
}
|
||||||
|
|
||||||
addIcons(stage);
|
addIcons(stage);
|
||||||
setupContent(stage, contentFunc, bindSize, loading);
|
setupContent(stage, contentFunc, bindSize, loading);
|
||||||
setupStylesheets(stage.getScene());
|
setupStylesheets(stage.getScene());
|
||||||
|
|
Loading…
Reference in a new issue