Mercurial > cgi-bin > hgweb.cgi > ImagePrep
view src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 20:71029c9bf7cd
Commit overlooked files.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sat, 21 Nov 2020 10:15:35 -0800 |
parents | 5fa5d15b4a7b |
children | a495f9ea498b |
line wrap: on
line source
/* * OS-dependent code, Mac version. */ package name.blackcap.imageprep 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) } }