mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
subsetmanager using product naming
This commit is contained in:
parent
08840e1235
commit
88bac818f6
2 changed files with 6 additions and 2 deletions
|
|
@ -32,7 +32,11 @@ class InstanceModel(QtGui.QStandardItemModel):
|
|||
items = []
|
||||
for instance_data in instances:
|
||||
item_id = str(uuid.uuid4())
|
||||
label = instance_data.get("label") or instance_data["subset"]
|
||||
product_name = (
|
||||
instance_data.get("productName")
|
||||
or instance_data.get("subset")
|
||||
)
|
||||
label = instance_data.get("label") or product_name
|
||||
item = QtGui.QStandardItem(label)
|
||||
item.setEnabled(True)
|
||||
item.setEditable(False)
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ class SubsetManagerWindow(QtWidgets.QDialog):
|
|||
|
||||
# Filter input
|
||||
filter_input = PlaceholderLineEdit(header_widget)
|
||||
filter_input.setPlaceholderText("Filter subsets..")
|
||||
filter_input.setPlaceholderText("Filter products..")
|
||||
|
||||
# Refresh button
|
||||
icon = qtawesome.icon("fa.refresh", color="white")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue