From 6b215a581c2a8760c81925682f4b8f94623bf0ab Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Tue, 28 Nov 2023 16:42:14 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-109834=20F0052=EF=BC=8C=E8=B5=B7?= =?UTF-8?q?=E5=A7=8B=E9=A1=B5=E8=A7=A6=E5=8F=91=E6=8A=A5=E9=94=99=EF=BC=8C?= =?UTF-8?q?starting=E6=8B=BF=E5=88=B0=E7=9A=84=E6=98=AFfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainframe/messagecollect/StartErrorMessageCollector.java | 5 ++++- .../src/main/java/com/fr/startup/ui/StartupPageWindow.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/messagecollect/StartErrorMessageCollector.java b/designer-base/src/main/java/com/fr/design/mainframe/messagecollect/StartErrorMessageCollector.java index 2b6cf0a8f6..03e3694814 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/messagecollect/StartErrorMessageCollector.java +++ b/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) { diff --git a/designer-base/src/main/java/com/fr/startup/ui/StartupPageWindow.java b/designer-base/src/main/java/com/fr/startup/ui/StartupPageWindow.java index d7fa813c1f..a2d9965e50 100644 --- a/designer-base/src/main/java/com/fr/startup/ui/StartupPageWindow.java +++ b/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); } } };