From 42568bffdbdb7b3de0f4713483a86bb698e2cf21 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 31 Aug 2021 18:03:44 +0200 Subject: [PATCH] fix state changes --- openpype/tools/new_publisher/widgets/publish_widget.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openpype/tools/new_publisher/widgets/publish_widget.py b/openpype/tools/new_publisher/widgets/publish_widget.py index 8e85521fb1..357fc56657 100644 --- a/openpype/tools/new_publisher/widgets/publish_widget.py +++ b/openpype/tools/new_publisher/widgets/publish_widget.py @@ -288,7 +288,11 @@ class PublishFrame(QtWidgets.QFrame): self.message_label.setVisible(visible) def _set_success_property(self, state=None): - self.info_frame.setProperty("state", str(state or "")) + if state is None: + state = "" + else: + state = str(state) + self.info_frame.setProperty("state", state) self.info_frame.style().polish(self.info_frame) def _on_copy_log(self):