From a259cd9bb847718b4d170b0a9cd94c39350ee7ba Mon Sep 17 00:00:00 2001 From: kuangshuai Date: Mon, 11 Oct 2021 11:30:06 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-60484=20=E8=A7=A3=E5=86=B3=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=B7=A5=E4=BD=9C=E7=9B=AE=E5=BD=95=E4=BC=9A=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E6=B3=A8=E5=86=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/mainframe/guide/base/GuideManager.java | 4 ++++ .../java/com/fr/design/mainframe/guide/GuideRegister.java | 1 + 2 files changed, 5 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideManager.java b/designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideManager.java index e5d837b593..08c46688d8 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideManager.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideManager.java @@ -106,4 +106,8 @@ public class GuideManager { } GuideCollector.getInstance().saveInfo(); } + + public void clearAll() { + guideVersionList.clear(); + } } diff --git a/designer-realize/src/main/java/com/fr/design/mainframe/guide/GuideRegister.java b/designer-realize/src/main/java/com/fr/design/mainframe/guide/GuideRegister.java index 8ed6f3a30f..537051153e 100644 --- a/designer-realize/src/main/java/com/fr/design/mainframe/guide/GuideRegister.java +++ b/designer-realize/src/main/java/com/fr/design/mainframe/guide/GuideRegister.java @@ -12,6 +12,7 @@ import com.fr.design.mainframe.guide.creator.theme.ThemeToggleGuide; public class GuideRegister { public static void register() { GuideCollector.getInstance().loadFromFile(); + GuideManager.getInstance().clearAll(); registerGroup(); registerGuide(); }