# HG changeset patch # User davidb # Date 1587090397 25200 # Node ID 3d9c363077046f0fc843658d60bb1f0714d820c5 # Parent 5cac95c17feff1463b9a95c8d2648f19f70b5162 Should make the wait cursor appear, but doesn't. Java bug? diff -r 5cac95c17fef -r 3d9c36307704 src/name/blackcap/exifwasher/ShowDialog.kt --- 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>?> { inBackground { try { @@ -61,7 +61,7 @@ } } whenDone { - useNormalCursor() + Application.mainFrame.useNormalCursor() val tableData = get() if (tableData == null) { JOptionPane.showMessageDialog(Application.mainFrame, diff -r 5cac95c17fef -r 3d9c36307704 src/name/blackcap/exifwasher/WashDialog.kt --- 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>?> { 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 { 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()) {