From 9a3db039752f5f87b2ea06e683fe70f9118a4b9e Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 26 Feb 2021 18:08:38 +0100 Subject: [PATCH] cleaned code --- pype/tools/standalonepublish/widgets/widget_family.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pype/tools/standalonepublish/widgets/widget_family.py b/pype/tools/standalonepublish/widgets/widget_family.py index 6020fa500c..f3c679cfb7 100644 --- a/pype/tools/standalonepublish/widgets/widget_family.py +++ b/pype/tools/standalonepublish/widgets/widget_family.py @@ -370,11 +370,8 @@ class FamilyWidget(QtWidgets.QWidget): settings = get_project_settings(project_name) sp_settings = settings.get('standalonepublisher', {}) - for key, creator in sp_settings.get("create", {}).items(): - if key == "__dynamic_keys_labels__": - continue - - creator = type(key, (Creator, ), creator) + for key, creator_data in sp_settings.get("create", {}).items(): + creator = type(key, (Creator, ), creator_data) label = creator.label or creator.family item = QtWidgets.QListWidgetItem(label)