Unused depreciated function
parent
25a24353f7
commit
435b6a29f2
|
@ -172,7 +172,7 @@ fun selectFile(allowedExtensions: Set<String>, onFileSelected: (String) -> Unit)
|
||||||
val filePath = "$selectedDirectory$selectedFile"
|
val filePath = "$selectedDirectory$selectedFile"
|
||||||
|
|
||||||
// Vérifier si l'extension est autorisée
|
// Vérifier si l'extension est autorisée
|
||||||
val fileExtension = File(filePath).extension.toLowerCase()
|
val fileExtension = File(filePath).extension.lowercase()
|
||||||
if (allowedExtensions.contains(fileExtension)) {
|
if (allowedExtensions.contains(fileExtension)) {
|
||||||
println("Opening: $filePath")
|
println("Opening: $filePath")
|
||||||
onFileSelected(filePath)
|
onFileSelected(filePath)
|
||||||
|
|
Loading…
Reference in New Issue