Browse Source

REPORT-109834 F0052,起始页触发报错,starting拿到的是false

release/11.0
Destiny.Lin 12 months ago
parent
commit
6b215a581c
  1. 5
      designer-base/src/main/java/com/fr/design/mainframe/messagecollect/StartErrorMessageCollector.java
  2. 2
      designer-base/src/main/java/com/fr/startup/ui/StartupPageWindow.java

5
designer-base/src/main/java/com/fr/design/mainframe/messagecollect/StartErrorMessageCollector.java

@ -52,7 +52,10 @@ public class StartErrorMessageCollector {
* 异步记录
*/
public void asyncRecord(String id, String msg, String detail) {
executorService.submit(() -> record(id, msg, detail));
executorService.submit(() -> {
record(id, msg, detail);
StartErrorMessageCollector.getInstance().setExtraJudgeStart(false);
});
}
public void record(String id, String msg) {

2
designer-base/src/main/java/com/fr/startup/ui/StartupPageWindow.java

@ -258,6 +258,7 @@ public class StartupPageWindow extends JFrame {
try {
Void result = get();
setVisible(false);
StartErrorMessageCollector.getInstance().setExtraJudgeStart(false);
} catch (Exception e) {
// 处理错误
UIUtil.invokeLaterIfNeeded(() -> {
@ -279,7 +280,6 @@ public class StartupPageWindow extends JFrame {
e.getMessage());
} finally {
loadingPanel.hide();
StartErrorMessageCollector.getInstance().setExtraJudgeStart(false);
}
}
};

Loading…
Cancel
Save