From 1b7aa14cf1b526050fea3a3ca1cc63d149b3ca85 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 14 Dec 2020 14:50:59 +0100 Subject: [PATCH] clear is as first on refresh --- pype/tools/standalonepublish/widgets/widget_family.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pype/tools/standalonepublish/widgets/widget_family.py b/pype/tools/standalonepublish/widgets/widget_family.py index dda4e5b03e..ed30dba420 100644 --- a/pype/tools/standalonepublish/widgets/widget_family.py +++ b/pype/tools/standalonepublish/widgets/widget_family.py @@ -312,15 +312,16 @@ class FamilyWidget(QtWidgets.QWidget): """ def refresh(self): + self.list_families.clear() + has_families = False project_name = self.dbcon.Session.get("AVALON_PROJECT") if not project_name: return + settings = get_project_settings(project_name) sp_settings = settings.get('standalonepublisher', {}) - self.list_families.clear() - for key, creator in sp_settings.get("create", {}).items(): if key == "__dynamic_keys_labels__": continue