diff --git a/designer-realize/src/com/fr/start/fx/SplashFx.java b/designer-realize/src/com/fr/start/fx/SplashFx.java index 7970e204fa..aef6d81b20 100644 --- a/designer-realize/src/com/fr/start/fx/SplashFx.java +++ b/designer-realize/src/com/fr/start/fx/SplashFx.java @@ -23,6 +23,7 @@ public class SplashFx implements SplashStrategy { @Override public void show() { + Platform.setImplicitExit(false); SERVICE.execute(new Runnable() { @Override public void run() { @@ -34,7 +35,7 @@ public class SplashFx implements SplashStrategy { @Override public void hide() { - Platform.exit(); + fxWindow.close(); } @Override diff --git a/designer-realize/src/com/fr/start/fx/SplashFxWindow.java b/designer-realize/src/com/fr/start/fx/SplashFxWindow.java index 486ba69b60..451fad60db 100644 --- a/designer-realize/src/com/fr/start/fx/SplashFxWindow.java +++ b/designer-realize/src/com/fr/start/fx/SplashFxWindow.java @@ -115,6 +115,19 @@ public class SplashFxWindow extends Application { primaryStage.show(); } + public void close() { + Platform.runLater(new Runnable() { + @Override + public void run() { + try { + ((Stage) moduleInfo.getScene().getWindow()).close(); + } catch (Exception e) { + FRContext.getLogger().error(e.getMessage(), e); + } + } + }); + } + /** * 更新模块信息 *