Mercurial > cgi-bin > hgweb.cgi > ClipMan
diff src/name/blackcap/clipman/Osdep.kt.mac.osdep @ 47:19d9da731c43
Recoded; cleaned up root namespace, removed race conditions.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sun, 12 Apr 2020 14:31:06 -0700 |
parents | 33fbe3a78d84 |
children |
line wrap: on
line diff
--- a/src/name/blackcap/clipman/Osdep.kt.mac.osdep Mon Feb 10 16:40:09 2020 -0700 +++ b/src/name/blackcap/clipman/Osdep.kt.mac.osdep Sun Apr 12 14:31:06 2020 -0700 @@ -4,13 +4,14 @@ package name.blackcap.clipman import com.apple.eawt.AboutHandler -import com.apple.eawt.Application import com.apple.eawt.PreferencesHandler +import com.apple.eawt.QuitStrategy fun setMacMenus() { - Application.getApplication().run { + com.apple.eawt.Application.getApplication().run { setAboutHandler(AboutHandler({ showAboutDialog() })) setPreferencesHandler( - PreferencesHandler({ settingsDialog.setVisible(true) })) + PreferencesHandler({ Application.settingsDialog.setVisible(true) })) + setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS) } }