yglukhov / nimx

GUI library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature? - register callback to the QuitEvent

jlp765 opened this issue · comments

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)

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.