Browse Source

REPORT-91743 设计器通过关闭模板A的方式触发保存,设计器页面显示还是模板A的内容

feature/x
Destiny.Lin 2 years ago
parent
commit
e099b5f3e0
  1. 2
      designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java

2
designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java

@ -1210,7 +1210,7 @@ public class MultiTemplateTabPane extends JComponent {
private boolean checkCurrentClose(JTemplate template) {
JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
return currentTemplate != null && ComparatorUtils.equals(template.getPath(), currentTemplate.getPath());
return JTemplate.isValid(currentTemplate) && ComparatorUtils.equals(template.getPath(), currentTemplate.getPath());
}
private class MultiTemplateTabMouseMotionListener implements MouseMotionListener {

Loading…
Cancel
Save