Mercurial > cgi-bin > hgweb.cgi > JpegWasher
diff src/name/blackcap/exifwasher/Menus.kt @ 50:fb407182ba76
Add help menu item, UNTESTED.
author | David Barts <davidb@stashtea.com> |
---|---|
date | Thu, 07 May 2020 08:29:58 -0700 |
parents | ee580450d45a |
children | 39895d44a287 |
line wrap: on
line diff
--- a/src/name/blackcap/exifwasher/Menus.kt Mon May 04 18:12:59 2020 -0700 +++ b/src/name/blackcap/exifwasher/Menus.kt Thu May 07 08:29:58 2020 -0700 @@ -37,11 +37,14 @@ }) } }) - if (OS.type != OS.MAC) { - add(JMenu("Help").apply { + add(JMenu("Help").apply { + if (OS.type != OS.MAC) { add(JMenuItem("About ${Application.MYNAME}…").apply { addActionListener(ActionListener { showAboutDialog() }) }) + } + add(JMenuItem("${Application.MYNAME} Help…").apply { + addActionListener(ActionListener { Application.helpDialog.setVisible(true) }) }) } }