Update Glossary.kt

main
CAPEL Maxime 2024-01-18 17:27:28 +01:00
parent 200cb8e013
commit 408b61eabc
1 changed files with 1 additions and 2 deletions

View File

@ -183,8 +183,7 @@ fun glossariesPage(
}
private fun handleGlossaryDeletion(glossary: Glossary) {
val file =
File(glossaryPath + (appState.selectedProject?.name) + "/" + glossary.jsonFilePath)
val file = File("${glossaryPath}${appState.selectedProject?.name}/${glossary.jsonFilePath}")
val deletionResult = file.delete()
if (deletionResult) {