Skip to content

Commit

Permalink
feat: Updated core/src/main/java/com/tlcsdm/core/j
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Apr 10, 2024
1 parent 4d92779 commit 1dd6a80
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public ScreenshotStage() {
if (hideMainStage) {
// 如果设置TRANSPARENT样式时 {@code stage.initStyle(StageStyle.TRANSPARENT);}
// 可以通过 FxApp.primaryStage.setIconified(true); 来隐藏窗口
FxApp.primaryStage.setOpacity(0);
OSUtil.minimizeStage(FxApp.primaryStage);
}

screenScaleX = Screen.getPrimary().getOutputScaleX();
Expand Down Expand Up @@ -328,7 +328,7 @@ private BufferedImage getScreenBufImg() {
private void endScreenshot() {
rootPane.setVisible(false);
if (hideMainStage) {
FxApp.primaryStage.setOpacity(1);
// Previously set to visible again, now handled by OSUtil.minimizeStage
}
this.hide();
}
Expand Down

0 comments on commit 1dd6a80

Please sign in to comment.