Skip to content

Commit 1c4b3ca

Browse files
committed
1、修复windows平台启动报错问题
1 parent 276079e commit 1c4b3ca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/main/java/com/xwintop/xJavaFxTool

src/main/java/com/xwintop/xJavaFxTool/Main.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public void start(Stage primaryStage) throws Exception {
6565

6666
StageUtils.loadPrimaryStageBound(primaryStage);
6767
primaryStage.show();
68+
StageUtils.updateStageStyle(primaryStage);
6869
}
6970

7071
private void loadNewUI(Stage primaryStage) {
@@ -85,8 +86,6 @@ private void loadClassicUI(Stage primaryStage) throws IOException {
8586

8687
Scene scene = JavaFxViewUtil.getJFXDecoratorScene(decorator);
8788
primaryStage.setScene(scene);
88-
89-
StageUtils.updateStageStyle(primaryStage);
9089
}
9190

9291
private void confirmExit(Event event) {

0 commit comments

Comments
 (0)