Mercurial > cgi-bin > hgweb.cgi > ImagePrep
annotate src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 11:1f824742e1fa
Improve scaling quality.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sat, 18 Jul 2020 08:12:00 -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 } |