diff --git a/src/main/java/com/sjhy/plugin/ui/GlobalConfigSettingForm.java b/src/main/java/com/sjhy/plugin/ui/GlobalConfigSettingForm.java index c7b1635..f06343d 100644 --- a/src/main/java/com/sjhy/plugin/ui/GlobalConfigSettingForm.java +++ b/src/main/java/com/sjhy/plugin/ui/GlobalConfigSettingForm.java @@ -131,11 +131,11 @@ public class GlobalConfigSettingForm implements Configurable, BaseSettings { if (this.currGlobalConfigGroup == null) { this.currGlobalConfigGroup = this.globalConfigGroupMap.get(GlobalDict.DEFAULT_GROUP_NAME); } - this.refreshUiVal(); // 解决reset后编辑框未清空BUG if (this.editorComponent != null) { this.editorComponent.setFile(null); } + this.refreshUiVal(); } @Override diff --git a/src/main/java/com/sjhy/plugin/ui/TemplateSettingForm.java b/src/main/java/com/sjhy/plugin/ui/TemplateSettingForm.java index f7b5a76..70303e4 100644 --- a/src/main/java/com/sjhy/plugin/ui/TemplateSettingForm.java +++ b/src/main/java/com/sjhy/plugin/ui/TemplateSettingForm.java @@ -131,11 +131,11 @@ public class TemplateSettingForm implements Configurable, BaseSettings { if (this.currTemplateGroup == null) { this.currTemplateGroup = this.templateGroupMap.get(GlobalDict.DEFAULT_GROUP_NAME); } - this.refreshUiVal(); // 解决reset后编辑框未清空BUG if (this.editorComponent != null) { this.editorComponent.setFile(null); } + this.refreshUiVal(); } @Override