Browse Source

REPORT-1916 模板耗时=》修复初次保存模板时,没有保存ID的bug

master
plough 7 years ago
parent
commit
19df32d4b0
  1. 5
      designer_base/src/com/fr/design/mainframe/JTemplate.java

5
designer_base/src/com/fr/design/mainframe/JTemplate.java

@ -529,12 +529,13 @@ public abstract class JTemplate<T extends IOFile, U extends BaseUndoState<?>> ex
}
protected boolean saveNewFile(FILE editingFILE, String oldName){
this.editingFILE = editingFILE;
// 在保存之前,初始化 templateID
initForCollect(); // 如果保存新模板(新建模板直接保存,或者另存为),则添加 templateID
this.editingFILE = editingFILE;
boolean result = this.saveFile();
if (result) {
DesignerFrameFileDealerPane.getInstance().refresh();
initForCollect(); // 如果保存新模板(新建模板直接保存,或者另存为),则添加 templateID
collectInfo();
}
//更换最近打开

Loading…
Cancel
Save