Browse Source

Merge pull request #102 in DESIGN/design from ~VITO/c-design:feature/10.0 to feature/10.0

* commit '7e748899f35a281486a10bf1b0f4d6758e5fb7e8':
  REPORT-8393 插件管理界面无法启动
master
superman 6 years ago
parent
commit
25829700ac
  1. 3
      designer-realize/src/com/fr/start/fx/SplashFx.java
  2. 13
      designer-realize/src/com/fr/start/fx/SplashFxWindow.java

3
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

13
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);
}
}
});
}
/**
* 更新模块信息
*

Loading…
Cancel
Save