comparison src/name/blackcap/exifwasher/Osdep.kt.mac.osdep @ 6:aafc9c127c7b

Fix many bugs; get settings (apparently) working.
author David Barts <n5jrn@me.com>
date Thu, 09 Apr 2020 22:29:48 -0700
parents ba5dc14652da
children 0a106e9b91b4
comparison
equal deleted inserted replaced
5:dc1f4359659d 6:aafc9c127c7b
2 * OS-dependent code, Mac version. 2 * OS-dependent code, Mac version.
3 */ 3 */
4 package name.blackcap.exifwasher 4 package name.blackcap.exifwasher
5 5
6 import com.apple.eawt.AboutHandler 6 import com.apple.eawt.AboutHandler
7 import com.apple.eawt.Application
8 import com.apple.eawt.PreferencesHandler 7 import com.apple.eawt.PreferencesHandler
9 8
10 fun setMacMenus() { 9 fun setMacMenus() {
11 Application.getApplication().run { 10 com.apple.eawt.Application.getApplication().run {
12 setAboutHandler(AboutHandler { showAboutDialog() }) 11 setAboutHandler(AboutHandler { showAboutDialog() })
13 setPreferencesHandler( 12 setPreferencesHandler(
14 PreferencesHandler { Application.settingsDialog.setVisible(true) }) 13 PreferencesHandler { Application.settingsDialog.setVisible(true) })
15 } 14 }
16 } 15 }