view 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 source

/*
 * 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) })
    }
}