mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
enum widget is using attr def items correctly
This commit is contained in:
parent
6cf511c767
commit
9772a6dcc5
1 changed files with 2 additions and 3 deletions
|
|
@ -401,9 +401,8 @@ class EnumAttrWidget(_BaseAttrDefWidget):
|
|||
if self.attr_def.tooltip:
|
||||
input_widget.setToolTip(self.attr_def.tooltip)
|
||||
|
||||
items = self.attr_def.items
|
||||
for key, label in items.items():
|
||||
input_widget.addItem(label, key)
|
||||
for item in self.attr_def.items:
|
||||
input_widget.addItem(item["label"], item["value"])
|
||||
|
||||
idx = input_widget.findData(self.attr_def.default)
|
||||
if idx >= 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue