Browse Source

代码修改

newui
kerry 2 years ago
parent
commit
91f3f3cd0b
  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

@ -226,7 +226,7 @@ public class MultiTemplateTabPane extends JComponent {
public boolean shouldClose(JTemplate closeJTemplate, int tplIndex, int i) { public boolean shouldClose(JTemplate closeJTemplate, int tplIndex, int i) {
boolean matchOption = this.closeOption.shouldClose(tplIndex, i); boolean matchOption = this.closeOption.shouldClose(tplIndex, i);
JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); JTemplate currentTemplate = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate();
if (currentTemplate == null) { if (!JTemplate.isValid(currentTemplate)) {
return matchOption; return matchOption;
} }
return matchOption && ComparatorUtils.equals(closeJTemplate.getTemplateTabOperatorType(), return matchOption && ComparatorUtils.equals(closeJTemplate.getTemplateTabOperatorType(),

Loading…
Cancel
Save