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

Feature? - register callback to the QuitEvent #460

Open
jlp765 opened this issue Dec 24, 2020 · 1 comment
Open

Feature? - register callback to the QuitEvent #460

jlp765 opened this issue Dec 24, 2020 · 1 comment

Comments

@jlp765
Copy link
Contributor

jlp765 commented Dec 24, 2020

Is there already a way to have a callback proc called on the QuitEvent
so that the quit can be intercepted, and

  • the user asked if they want to quit (and a mechanism to stop the QuitEvent propagating)
  • do some clean up, etc (although this could be done by the exitprocs.addExitProc)
@yglukhov
Copy link
Owner

There's no such thing iirc. If you're into implementing it, I'd suggest doing this API by adding shouldExit*: proc(): bool to Application.

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

No branches or pull requests

2 participants