use new attribute names

This commit is contained in:
Jakub Trllo 2024-09-16 12:01:54 +02:00
parent d01cde7051
commit f174941e1d
2 changed files with 5 additions and 5 deletions

View file

@ -28,10 +28,10 @@ from .files_widget import FilesWidget
def create_widget_for_attr_def(attr_def, parent=None):
widget = _create_widget_for_attr_def(attr_def, parent)
if attr_def.hidden:
if not attr_def.visible:
widget.setVisible(False)
if attr_def.disabled:
if not attr_def.enabled:
widget.setEnabled(False)
return widget
@ -135,7 +135,7 @@ class AttributeDefinitionsWidget(QtWidgets.QWidget):
widget = create_widget_for_attr_def(attr_def, self)
self._widgets.append(widget)
if attr_def.hidden:
if not attr_def.visible:
continue
expand_cols = 2

View file

@ -1446,7 +1446,7 @@ class CreatorAttrsWidget(QtWidgets.QWidget):
self._attr_def_id_to_instances[attr_def.id] = attr_instances
self._attr_def_id_to_attr_def[attr_def.id] = attr_def
if attr_def.hidden:
if not attr_def.visible:
continue
expand_cols = 2
@ -1585,7 +1585,7 @@ class PublishPluginAttrsWidget(QtWidgets.QWidget):
widget = create_widget_for_attr_def(
attr_def, content_widget
)
hidden_widget = attr_def.hidden
hidden_widget = not attr_def.visible
# Hide unknown values of publish plugins
# - The keys in most of cases does not represent what would
# label represent