-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[v2] runtime.Quit on windows not working #926
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
Labels
Bug
Something isn't working
Comments
If you try and kill it in startup, it won't quit properly because a number of things are in flight. // Greet returns a greeting for the given name
func (b *App) Greet(name string) string {
runtime.Quit(b.ctx)
return fmt.Sprintf("Hello %s, It's show time!", name)
} |
Thanks for the fast reply and sorry for wasting your time Lea |
No worries, you found a gap in the docs. Will update 👍 |
Updated docs 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I've been playing around with v2 really liking it so far!
I noticed that I cannot close the app with
runtime.Quit(ctx)
on Windows for some reason. However, I tested in on Mac and it seems to work fine.Tested on fresh project as well, steps:
wails init -n test
add couple of lines in startup
wails build and execute the binary, window stays open. Do you have any insight?
I was actually looking for a way to restart the app, do you think that would be a useful addition to the project?
Thanks : )
Originally posted by @stefpap in #828 (comment)
The text was updated successfully, but these errors were encountered: