Fixed open dir dialog showing "Save" instead of "Open" on Windows/MacOS
This commit is contained in:
parent
e8c3a3de6f
commit
0341a4f577
@ -68,7 +68,7 @@ private fun openJvmDialog(
|
|||||||
JFileChooser(latestDirectoryOpened)
|
JFileChooser(latestDirectoryOpened)
|
||||||
|
|
||||||
fileChooser.fileSelectionMode = JFileChooser.DIRECTORIES_ONLY
|
fileChooser.fileSelectionMode = JFileChooser.DIRECTORIES_ONLY
|
||||||
fileChooser.showSaveDialog(null)
|
fileChooser.showOpenDialog(null)
|
||||||
|
|
||||||
return if (fileChooser.selectedFile != null)
|
return if (fileChooser.selectedFile != null)
|
||||||
fileChooser.selectedFile.absolutePath
|
fileChooser.selectedFile.absolutePath
|
||||||
|
Loading…
Reference in New Issue
Block a user