Browse Source

REPORT-8393 插件管理界面无法启动

master
vito 6 years ago
parent
commit
7e748899f3
  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