Mercurial > cgi-bin > hgweb.cgi > ClipMan
view src/name/blackcap/clipman/Osdep.kt @ 64:a30deee457e3
Added tag last-old-threading for changeset 8c6d6ad92aa1
author | David Barts <n5jrn@me.com> |
---|---|
date | Sun, 12 Jan 2025 10:23:04 -0800 |
parents | c6cccbe2f393 |
children |
line wrap: on
line source
/* * OS-dependent code, Mac version. */ package name.blackcap.clipman import java.awt.Desktop import java.awt.desktop.AboutHandler import java.awt.desktop.PreferencesHandler import java.awt.desktop.QuitStrategy fun setMacMenus() { if (OS.type == OS.MAC) { Desktop.getDesktop().run { setAboutHandler(AboutHandler({ showAboutDialog() })) setPreferencesHandler( PreferencesHandler({ Application.settingsDialog.setVisible(true) })) setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS) } } }