Mercurial > cgi-bin > hgweb.cgi > JpegWasher
diff src/name/blackcap/exifwasher/Osdep.kt.mac.osdep @ 4:ba5dc14652da
Commit correct Osdep files.
author | David Barts <n5jrn@me.com> |
---|---|
date | Wed, 08 Apr 2020 21:31:30 -0700 |
parents | |
children | aafc9c127c7b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/name/blackcap/exifwasher/Osdep.kt.mac.osdep Wed Apr 08 21:31:30 2020 -0700 @@ -0,0 +1,16 @@ +/* + * OS-dependent code, Mac version. + */ +package name.blackcap.exifwasher + +import com.apple.eawt.AboutHandler +import com.apple.eawt.Application +import com.apple.eawt.PreferencesHandler + +fun setMacMenus() { + Application.getApplication().run { + setAboutHandler(AboutHandler { showAboutDialog() }) + setPreferencesHandler( + PreferencesHandler { Application.settingsDialog.setVisible(true) }) + } +}