Unused depreciated function

main
CAPEL Maxime 2023-12-06 13:26:38 +01:00
parent 25a24353f7
commit 435b6a29f2
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ fun selectFile(allowedExtensions: Set<String>, 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)