Browse Source

REPORT-101063 【版本管理三期】模板已打开,打开版本管理,模板被自动关闭 优化代码

release/11.0
Destiny.Lin 1 year ago
parent
commit
c7224d5420
  1. 7
      designer-base/src/main/java/com/fr/design/mainframe/DesignerFrameFileDealerPane.java

7
designer-base/src/main/java/com/fr/design/mainframe/DesignerFrameFileDealerPane.java

@ -589,15 +589,12 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
for (JTemplate jTemplate : HistoryTemplateListCache.getInstance().getHistoryList()) { for (JTemplate jTemplate : HistoryTemplateListCache.getInstance().getHistoryList()) {
if (ComparatorUtils.equals(jTemplate.getEditingFILE().getPath(), path)) { if (ComparatorUtils.equals(jTemplate.getEditingFILE().getPath(), path)) {
if (!jTemplate.isALLSaved()) { if (!jTemplate.isALLSaved()) {
if (isCurrentEditing) { MultiTemplateTabPane.getInstance().setIsCloseCurrent(isCurrentEditing);
MultiTemplateTabPane.getInstance().setIsCloseCurrent(true);
}
MultiTemplateTabPane.getInstance().closeFormat(jTemplate); MultiTemplateTabPane.getInstance().closeFormat(jTemplate);
confirmCloseAndShowVcsNewPane(jTemplate, path); confirmCloseAndShowVcsNewPane(jTemplate, path);
return; return;
} else {
showVcsNewPane(path);
} }
showVcsNewPane(path);
} }
} }
} }

Loading…
Cancel
Save