Mercurial > cgi-bin > hgweb.cgi > ClipMan
view src/name/blackcap/clipman/Osdep.kt.mac.osdep @ 54:a9d5c94a177c
Add README file.
author | David Barts <n5jrn@me.com> |
---|---|
date | Tue, 13 Apr 2021 10:33:33 -0700 |
parents | 19d9da731c43 |
children |
line wrap: on
line source
/* * OS-dependent code, Mac version. */ package name.blackcap.clipman import com.apple.eawt.AboutHandler import com.apple.eawt.PreferencesHandler import com.apple.eawt.QuitStrategy fun setMacMenus() { com.apple.eawt.Application.getApplication().run { setAboutHandler(AboutHandler({ showAboutDialog() })) setPreferencesHandler( PreferencesHandler({ Application.settingsDialog.setVisible(true) })) setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS) } }