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() {
CustomToolBarButton customToolBarButton = (CustomToolBarButton) widget;
if (customToolBarButton.getJSImpl() != null) {
customToolBarButton.setJSImpl(this.javaScriptPane.updateBean());
} else {
customToolBarButton.setJSImpl(JavaScriptActionPane.createDefault().updateBean());
if (customToolBarButton.getJSImpl() == null) {
this.javaScriptPane = JavaScriptActionPane.createDefault();
}
customToolBarButton.setJSImpl(this.javaScriptPane.updateBean());
}
}

Loading…
Cancel
Save