yglukhov / nimx

GUI library
MIT License
1.1k stars 75 forks source link

Feature? - register callback to the QuitEvent #460

Open jlp765 opened 3 years ago

jlp765 commented 3 years ago

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

yglukhov commented 3 years ago

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.