Browse Source

REPORT-68949 控件-预定义控件-预定义控件新建后控件列表中没有刷新出来

bugfix/11.0
lucian 3 years ago
parent
commit
7baae38c85
  1. 4
      designer-realize/src/main/java/com/fr/design/widget/WidgetPane.java

4
designer-realize/src/main/java/com/fr/design/widget/WidgetPane.java

@ -277,9 +277,7 @@ public class WidgetPane extends AbstractAttrNoScrollPane implements ItemListener
// 下拉刷新下列表
Vector<Item> widgetsName = getWidgetsName(userDefined);
if (modelChanged(widgetsName)) {
Object selectedItem = getSelectedItem();
setModel(new DefaultComboBoxModel<>(widgetsName));
setSelectedItem(selectedItem);
refreshBoxItems(widgetsName);
}
}

Loading…
Cancel
Save