Browse Source

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

newui
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()) {
if (ComparatorUtils.equals(jTemplate.getEditingFILE().getPath(), path)) {
if (!jTemplate.isALLSaved()) {
if (isCurrentEditing) {
MultiTemplateTabPane.getInstance().setIsCloseCurrent(true);
}
MultiTemplateTabPane.getInstance().setIsCloseCurrent(isCurrentEditing);
MultiTemplateTabPane.getInstance().closeFormat(jTemplate);
confirmCloseAndShowVcsNewPane(jTemplate, path);
return;
} else {
showVcsNewPane(path);
}
showVcsNewPane(path);
}
}
}

Loading…
Cancel
Save