From 5dcc6fade062a98450f3cd553fcadcfbc845d457 Mon Sep 17 00:00:00 2001 From: CAPEL Maxime <83071634+fortyup@users.noreply.github.com> Date: Wed, 6 Dec 2023 14:28:33 +0100 Subject: [PATCH] Re-Restrict to allowed extensions --- src/main/kotlin/main/Main.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/kotlin/main/Main.kt b/src/main/kotlin/main/Main.kt index 2f8e33c..8268642 100644 --- a/src/main/kotlin/main/Main.kt +++ b/src/main/kotlin/main/Main.kt @@ -163,11 +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 -<<<<<<< HEAD fileDialog.file = "*." + extensions.joinToString(";*.") -======= - fileDialog.file = "." + extensions.joinToString(";.") ->>>>>>> e781783c7b2bf2f23f4b744a28d7d380abad4702 fileDialog.isVisible = true