diff --git a/src/main/kotlin/main/Main.kt b/src/main/kotlin/main/Main.kt index 2e643dd..73c653d 100644 --- a/src/main/kotlin/main/Main.kt +++ b/src/main/kotlin/main/Main.kt @@ -172,7 +172,7 @@ fun selectFile(allowedExtensions: Set, onFileSelected: (String) -> Unit) val filePath = "$selectedDirectory$selectedFile" // Vérifier si l'extension est autorisée - val fileExtension = File(filePath).extension.toLowerCase() + val fileExtension = File(filePath).extension.lowercase() if (allowedExtensions.contains(fileExtension)) { println("Opening: $filePath") onFileSelected(filePath)