From 2005484fe18f937596c1a3d58b319be9491bad59 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Mon, 6 May 2019 18:34:55 +0200 Subject: [PATCH] widget components is ready for handling publish result --- pype/standalonepublish/widgets/widget_components.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pype/standalonepublish/widgets/widget_components.py b/pype/standalonepublish/widgets/widget_components.py index 326aefe693..1e1fdf88e3 100644 --- a/pype/standalonepublish/widgets/widget_components.py +++ b/pype/standalonepublish/widgets/widget_components.py @@ -119,6 +119,10 @@ class ComponentsWidget(QtWidgets.QWidget): publish.set_context( data['project'], data['asset'], 'standalonepublish' ) - publish.publish(data) + result = publish.publish(data) + # Clear widgets from components list if publishing was successful + if result: + self.drop_frame.components_list.clear_widgets() + self.drop_frame._refresh_view() finally: self.working_stop()