diff src/name/blackcap/exifwasher/WashDialog.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/WashDialog.kt	Thu Apr 16 12:58:50 2020 -0700
+++ b/src/name/blackcap/exifwasher/WashDialog.kt	Thu Apr 16 19:26:37 2020 -0700
@@ -101,7 +101,7 @@
 
         selectAll.setSelected(false)
         washing = dirty
-        useWaitCursor()
+        Application.mainFrame.useWaitCursor()
         swingWorker<Array<Array<Any>>?> {
             inBackground {
                 try {
@@ -122,7 +122,7 @@
                 }
             }
             whenDone {
-                useNormalCursor()
+                Application.mainFrame.useNormalCursor()
                 val tableData = get()
                 if (tableData == null) {
                     JOptionPane.showMessageDialog(Application.mainFrame,
@@ -189,7 +189,7 @@
         }
 
         /* copy the file, then edit the Exif in the copy */
-        useWaitCursor()
+        Application.mainFrame.useWaitCursor()
         swingWorker<Boolean> {
             inBackground {
                 try {
@@ -216,7 +216,7 @@
                 }
             }
             whenDone {
-                useNormalCursor()
+                Application.mainFrame.useNormalCursor()
                 close()
                 /* if all went well, show the Exif in the new file */
                 if (get()) {