diff src/name/blackcap/imageprep/Menus.kt @ 3:09dcd475d1bf

Works (prelim tests only).
author David Barts <n5jrn@me.com>
date Fri, 17 Jul 2020 11:48:07 -0700
parents 0bded24f746e
children 884f1415a330
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/Menus.kt	Fri Jul 17 10:34:48 2020 -0700
+++ b/src/name/blackcap/imageprep/Menus.kt	Fri Jul 17 11:48:07 2020 -0700
@@ -75,7 +75,7 @@
 
     private fun doOpen() {
         val chooser = JFileChooser().apply {
-            fileFilter = FileNameExtensionFilter("Image files", *ImageIO.getReaderFileSuffixes())
+            fileFilter = FileNameExtensionFilter("Image Files", *ImageIO.getReaderFileSuffixes())
         }
         if (chooser.showOpenDialog(Application.mainFrame) == JFileChooser.APPROVE_OPTION) {
             RotateDialog.makeDialog(chooser.selectedFile)
@@ -104,7 +104,7 @@
                 if (Settings.outputToInputDir) w.file.parent else Settings.outputTo,
                 outName)
         }
-        if (chooser.showOpenDialog(Application.mainFrame) != JFileChooser.APPROVE_OPTION) {
+        if (chooser.showSaveDialog(Application.mainFrame) != JFileChooser.APPROVE_OPTION) {
             return
         }
         val (name, ext) = splitext(chooser.selectedFile.name)