Re-Restrict to allowed extensions

main
CAPEL Maxime 2023-12-06 14:28:33 +01:00
parent d09d4aef8d
commit 5dcc6fade0
1 changed files with 0 additions and 4 deletions

View File

@ -163,11 +163,7 @@ fun app() {
fun selectFile(extensions: Set<String>, onFileSelected: (String) -> Unit) {
val fileDialog = FileDialog(Frame(), "Select a file", FileDialog.LOAD)
fileDialog.isMultipleMode = false // To enable selecting only one file
<<<<<<< HEAD
fileDialog.file = "*." + extensions.joinToString(";*.")
=======
fileDialog.file = "." + extensions.joinToString(";.")
>>>>>>> e781783c7b2bf2f23f4b744a28d7d380abad4702
fileDialog.isVisible = true