Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Dec 8, 2023
1 parent ae63545 commit 106f1ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/viewtify/Viewtify.java
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ private void activate(View application, boolean isOperner) {
boolean isUpdate = canUpdate && Update.isValid(updateArchive);

View actual = isUpdate ? new Empty() : isOperner ? I.make(opener) : application;
mainStage = new Stage(isOperner ? StageStyle.UNDECORATED : stageStyle);
mainStage = new Stage(isOperner ? StageStyle.UTILITY : stageStyle);
if (isUpdate) mainStage.setOpacity(0);

Scene scene = new Scene((Parent) actual.ui());
Expand All @@ -530,6 +530,12 @@ private void activate(View application, boolean isOperner) {
});

if (isOperner) {
mainStage.setOpacity(0);
mainStage.setWidth(1);
mainStage.setHeight(1);
mainStage.setX(-1000);
mainStage.setY(-1000);

scene.setFill(null);
mainStage.setOnHidden(e -> {
if (!Terminator.isDisposed()) {
Expand Down

0 comments on commit 106f1ad

Please sign in to comment.