Skip to content
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

Closing host while the interface is open #14

Closed
ghost opened this issue Nov 22, 2014 · 5 comments
Closed

Closing host while the interface is open #14

ghost opened this issue Nov 22, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 22, 2014

At the moment, if the interface is open and you close the host, the interface will remain open but it will lose the connection with the host. I think that in those situations, we should either close the interface or provide some kind of feedback to the user so he can hook up the interface with other currently active hosts.

@mottosso
Copy link
Member

Well spotted, this is certainly something we'll need to solve.

I can see three methods;

  1. If Parent window to host #1 is successful, the Window will close together with the host
  2. Polling; once a second ask host "are you still there?", and if not, close the GUI.
  3. Upon a focus-event (i.e. when switching to the GUI), ask host "are you still there?", and if not, tell user about the lack of a host.

Any other ideas?

@ghost
Copy link
Author

ghost commented Nov 22, 2014

Option 1 is the ideal one.

If that was not possible, I'd go for option 2. Purely because it feels weird having to select a window to make it it realize that it should close itself. (from a user point of view that is)

@mottosso
Copy link
Member

@mottosso
Copy link
Member

This has been implemented in the integration.

@mottosso
Copy link
Member

Fully implemented in Pyblish QML as of 0.2.6; if psutil is installed, it will kick in automatically.

$ pip install psutil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant