howto run a custom function when frame gets closed

13 views
Skip to first unread message

jun...@selma.hfmdk-frankfurt.de

unread,
Nov 22, 2015, 10:16:40 AM11/22/15
to seesaw-clj
Hi,

 is there a way to run a function when closing a frame in order to do some cleanup?

jun...@selma.hfmdk-frankfurt.de

unread,
Nov 22, 2015, 11:01:00 AM11/22/15
to seesaw-clj
Ok, found a solution:

(def f (ss/frame :listen [:window-closing (fn [_] (println "closed!"))]))
Reply all
Reply to author
Forward
0 new messages