修复初次进入编辑面板时,编辑框无内容BUG

This commit is contained in:
makejava 2021-08-11 17:22:01 +08:00
parent e24ea01047
commit ac228a0c90
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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