Mercurial > cgi-bin > hgweb.cgi > JpegWasher
changeset 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 | 5cac95c17fef |
children | 5a5a7de27eb4 |
files | src/name/blackcap/exifwasher/ShowDialog.kt src/name/blackcap/exifwasher/WashDialog.kt |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
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,
--- 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()) {