-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window open after host dies #120
Comments
This is likely resolved since 1.0.0 release. If not maybe we need to elaborate the problem some more. |
It's only resolved in Maya, so far. Odds are we'll have to implement a similar mechanism for other hosts, which is to put in a callback that quits QML on host exit. In Maya, this has been implemented as a |
For Qt based hosts could we connect it to the http://doc.qt.io/qt-5/qcoreapplication.html#aboutToQuit from Qt import QtWidgets
def on_application_quit():
try:
_state["currentServer"].popen.kill()
except KeyError:
# No server started
pass
except OSError:
# Already dead
pass
QtWidgets.QApplication.instance().aboutToQuit.connect(on_application_quit) Just tested this in Maya. This is a working replacement for the scriptjob method. |
That's a good idea! |
The QML window shouldn't remain open when the currently active host stops sending heartbeats.
The text was updated successfully, but these errors were encountered: