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); Vector<Item> widgetsName = getWidgetsName(userDefined);
if (modelChanged(widgetsName)) { if (modelChanged(widgetsName)) {
Object selectedItem = getSelectedItem(); refreshBoxItems(widgetsName);
setModel(new DefaultComboBoxModel<>(widgetsName));
setSelectedItem(selectedItem);
} }
} }

Loading…
Cancel
Save