From 00ffe5778940fade18ff5a3ba9bbdb9e94a2d504 Mon Sep 17 00:00:00 2001 From: Philip Scadding Date: Wed, 15 Apr 2020 16:33:15 +0100 Subject: [PATCH] SG-16766 Fixes a bug when running an a non GUI env (#118) Fixes a bug where we were only running a UI update when the UI was not present. --- python/tk_multi_publish2/api/plugins/publish_plugin_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tk_multi_publish2/api/plugins/publish_plugin_instance.py b/python/tk_multi_publish2/api/plugins/publish_plugin_instance.py index 9c58f5c7..0381f149 100644 --- a/python/tk_multi_publish2/api/plugins/publish_plugin_instance.py +++ b/python/tk_multi_publish2/api/plugins/publish_plugin_instance.py @@ -154,7 +154,7 @@ def run_accept(self, item): ) return {"accepted": False} finally: - if not sgtk.platform.current_engine().has_ui: + if sgtk.platform.current_engine().has_ui: from sgtk.platform.qt import QtCore QtCore.QCoreApplication.processEvents()