Skip to content

Commit

Permalink
SG-16766 Fixes a bug when running an a non GUI env (#118)
Browse files Browse the repository at this point in the history
Fixes a bug where we were only running a UI update when the UI was not present.
  • Loading branch information
pscadding authored Apr 15, 2020
1 parent ac0b66f commit 00ffe57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 00ffe57

Please sign in to comment.