diff --git a/src/main/kotlin/main/Main.kt b/src/main/kotlin/main/Main.kt index 75ee2ae..6010fc7 100644 --- a/src/main/kotlin/main/Main.kt +++ b/src/main/kotlin/main/Main.kt @@ -163,6 +163,7 @@ fun app() { fun selectFile(extensions: Set, onFileSelected: (String) -> Unit) { val fileDialog = FileDialog(Frame(), "Select a file", FileDialog.LOAD) fileDialog.isMultipleMode = false // To enable selecting only one file + fileDialog.file = "." + extensions.joinToString(";.") fileDialog.isVisible = true val selectedFile = fileDialog.file