diff src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 19:5fa5d15b4a7b

Attempt to make it a std. app. Builds, sorta runs, needs more work.
author David Barts <n5jrn@me.com>
date Fri, 20 Nov 2020 21:38:06 -0800
parents 0bded24f746e
children a495f9ea498b
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/Osdep.kt.mac.osdep	Fri Nov 20 21:37:37 2020 -0800
+++ b/src/name/blackcap/imageprep/Osdep.kt.mac.osdep	Fri Nov 20 21:38:06 2020 -0800
@@ -10,6 +10,8 @@
 fun setMacMenus() {
     com.apple.eawt.Application.getApplication().run {
         setAboutHandler(AboutHandler { showAboutDialog() })
+        setPreferencesHandler(
+            PreferencesHandler { Application.settingsDialog.setVisible(true) })
         setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS)
     }
 }