Skip to content

Commit

Permalink
Merge pull request #361 from jasperges/master
Browse files Browse the repository at this point in the history
Fix #360 - quit Pyblish QML when Blender's operator is cancelled
  • Loading branch information
mottosso authored Mar 9, 2020
2 parents 18826c8 + 0bf712a commit f59b1ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyblish_qml/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,11 @@ def execute(self, context):
def cancel(self, context):
wm = context.window_manager
wm.event_timer_remove(self._timer)
# Quit the Pyblish QML GUI, else it will be unresponsive
server = _state.get("currentServer")
if server:
proxy = ipc.server.Proxy(server)
proxy.quit()

log.info("Registering Blender + Pyblish operator")
bpy.utils.register_class(PyblishQMLOperator)
Expand Down

0 comments on commit f59b1ab

Please sign in to comment.