Browse Source

REPORT-75786 11.0feature版本设计器无法启动

feature/x
hades 2 years ago
parent
commit
82a8701eb5
  1. 9
      designer-realize/src/main/java/com/fr/start/MainDesigner.java

9
designer-realize/src/main/java/com/fr/start/MainDesigner.java

@ -119,9 +119,8 @@ public class MainDesigner extends BaseDesigner {
* @param args 参数 * @param args 参数
*/ */
public static void main(String[] args) { public static void main(String[] args) {
DesignerStartupContext.getRecorder().start(); DesignerStartupContext.getRecorder().start();
showSplash();
startPreload0(); startPreload0();
DeepLinkManager.getInstance().start(args); DeepLinkManager.getInstance().start(args);
@ -192,12 +191,6 @@ public class MainDesigner extends BaseDesigner {
}; };
PreLoadService.getInstance().addRunnable(fontLoad); PreLoadService.getInstance().addRunnable(fontLoad);
CompletableFuture<Void> splashFuture = CompletableFuture.runAsync(() -> {
DesignerEnvManager.getEnvManager(false);
})
.thenRun(MainDesigner::showSplash);
PreLoadService.getInstance().addFuture(splashFuture);
} }
private static void showSplash() { private static void showSplash() {

Loading…
Cancel
Save