Mercurial > cgi-bin > hgweb.cgi > ImagePrep
annotate src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 15:fad32eda667f
Fix ImageWriter leak.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sun, 19 Jul 2020 13:49:23 -0700 |
parents | 0bded24f746e |
children | 5fa5d15b4a7b |
rev | line source |
---|---|
0 | 1 /* |
2 * OS-dependent code, Mac version. | |
3 */ | |
1 | 4 package name.blackcap.imageprep |
0 | 5 |
6 import com.apple.eawt.AboutHandler | |
7 import com.apple.eawt.PreferencesHandler | |
8 import com.apple.eawt.QuitStrategy | |
9 | |
10 fun setMacMenus() { | |
11 com.apple.eawt.Application.getApplication().run { | |
12 setAboutHandler(AboutHandler { showAboutDialog() }) | |
13 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS) | |
14 } | |
15 } |