changeset 49:bb80148e2cb3

Log exit from File? Quit.
author David Barts <n5jrn@me.com>
date Sun, 12 Apr 2020 17:03:11 -0700
parents 7a75c743f973
children 3f8409470fdf
files src/name/blackcap/clipman/Menus.kt
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/name/blackcap/clipman/Menus.kt	Sun Apr 12 14:39:15 2020 -0700
+++ b/src/name/blackcap/clipman/Menus.kt	Sun Apr 12 17:03:11 2020 -0700
@@ -8,6 +8,8 @@
 import java.awt.event.ActionEvent
 import java.awt.event.ActionListener
 import java.awt.event.KeyEvent
+import java.util.logging.Level
+import java.util.logging.Logger
 import javax.swing.*
 import kotlin.collections.HashSet
 
@@ -17,7 +19,10 @@
 class MenuItemListener: ActionListener {
     override fun actionPerformed(e: ActionEvent) {
         when (e.actionCommand) {
-            "File.Quit" -> System.exit(0)
+            "File.Quit" -> {
+                LOGGER.log(Level.INFO, "execution complete")
+                System.exit(0)
+            }
             "File.Preferences" -> Application.settingsDialog.setVisible(true)
             "Edit.Clone" -> onlyIfSelected { PasteboardItem.write(it.contents) }
             "Edit.Coerce" -> onlyIfSelected { Application.coerceDialog.setVisible(true) }