<@U3W5HPJV6> <@U25U0KPFT> is correct, `setOnCloseR...
# tornadofx
e
@sbyrne @carlw is correct,
setOnCloseRequest
is intended to handle external requests to closing the window, ie when you actually click the X, it will not be called when you explicitly call
close()
. You can use
setOnCloseRequest
to intercept the close request and for example show a "save unsaved work" dialog before closing.