Browse Source

REPORT-101480 【版本管理二期】自动保存后手动保存,版本管理逻辑会乱

new-design
Destiny.Lin 1 year ago
parent
commit
4b33c9c0c2
  1. 5
      designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

5
designer-base/src/main/java/com/fr/design/mainframe/JTemplate.java

@ -1149,10 +1149,9 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>>
*/ */
public void addJTemplateActionListener(JTemplateActionListener l) { public void addJTemplateActionListener(JTemplateActionListener l) {
List<Object> list = Arrays.asList(this.listenerList.getListeners(JTemplateActionListener.class)); List<Object> list = Arrays.asList(this.listenerList.getListeners(JTemplateActionListener.class));
if (list.contains(l)) { if (!list.contains(l)) {
this.listenerList.remove(JTemplateActionListener.class, l); this.listenerList.add(JTemplateActionListener.class, l);
} }
this.listenerList.add(JTemplateActionListener.class, l);
} }
/** /**

Loading…
Cancel
Save