diff src/name/blackcap/exifwasher/ShowDialog.kt @ 24:3d9c36307704

Should make the wait cursor appear, but doesn't. Java bug?
author davidb
date Thu, 16 Apr 2020 19:26:37 -0700
parents 39b977021ea1
children 40911898ed23
line wrap: on
line diff
--- a/src/name/blackcap/exifwasher/ShowDialog.kt	Thu Apr 16 12:58:50 2020 -0700
+++ b/src/name/blackcap/exifwasher/ShowDialog.kt	Thu Apr 16 19:26:37 2020 -0700
@@ -42,7 +42,7 @@
     /* controls the washing of the Exif data */
     fun show(image: File) {
         title = "Washed: ${image.name}"
-        useWaitCursor()
+        Application.mainFrame.useWaitCursor()
         swingWorker<Array<Array<String>>?> {
             inBackground {
                 try {
@@ -61,7 +61,7 @@
                 }
             }
             whenDone {
-                useNormalCursor()
+                Application.mainFrame.useNormalCursor()
                 val tableData = get()
                 if (tableData == null) {
                     JOptionPane.showMessageDialog(Application.mainFrame,