Browse Source

REPORT-15027 两个自定义按钮设置,第一个的提交入库会显示在第二个上

bugfix/10.0
Hades 6 years ago
parent
commit
3a426fbe99
  1. 8
      designer-realize/src/main/java/com/fr/design/webattr/EditToolBar.java

8
designer-realize/src/main/java/com/fr/design/webattr/EditToolBar.java

@ -679,12 +679,10 @@ public class EditToolBar extends BasicPane {
private void updateCustomToolBarButton() { private void updateCustomToolBarButton() {
CustomToolBarButton customToolBarButton = (CustomToolBarButton) widget; CustomToolBarButton customToolBarButton = (CustomToolBarButton) widget;
if (customToolBarButton.getJSImpl() != null) { if (customToolBarButton.getJSImpl() == null) {
customToolBarButton.setJSImpl(this.javaScriptPane.updateBean()); this.javaScriptPane = JavaScriptActionPane.createDefault();
} else {
customToolBarButton.setJSImpl(JavaScriptActionPane.createDefault().updateBean());
} }
customToolBarButton.setJSImpl(this.javaScriptPane.updateBean());
} }
} }

Loading…
Cancel
Save