-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Close window ? #226
Comments
There is currently no way to do this. It should be easily implementable (maybe as part of Opening and closing windows from the same process is something that we should explore when tackling #27. |
While not being the best solution, i think it might be possible to currently do this by taking control of the event loop yourself. The integration example might be a good starting point, you would just need to remove the scene code from the example. You would then just call |
Thank you. Yes, this seems to be a good way to do it by now. Or to *set control_flow to ControlFlow::Exit, to end the application on certain user interactions. |
Do you mean that
|
This issue is somewhat related to #170. Maybe we should tackle both of them together.
Yes, I think an
The mode can be currently set in |
Currently this works, for killing the entire process thereby closing the open window. But looks your asking for something to close a spawned window, idk if those are spawned as their own process. If they are not then this would not work. std::process::exit() |
Is there any way to programmatically close the window ?
I'm evaluating the possibility to write a daemon that pops a window asking a question, then when the question is answered, the window must disappear without the user clicking the close button.
The text was updated successfully, but these errors were encountered: