Browse Source

REPORT-60484 解决切换工作目录会多次注册问题

research/11.0
kuangshuai 3 years ago
parent
commit
a259cd9bb8
  1. 4
      designer-base/src/main/java/com/fr/design/mainframe/guide/base/GuideManager.java
  2. 1
      designer-realize/src/main/java/com/fr/design/mainframe/guide/GuideRegister.java

4
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();
}
}

1
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();
}

Loading…
Cancel
Save