From 408b61eabc8efd1f835a5e7bd3e2e80e931d1493 Mon Sep 17 00:00:00 2001 From: CAPEL Maxime <83071634+fortyup@users.noreply.github.com> Date: Thu, 18 Jan 2024 17:27:28 +0100 Subject: [PATCH] Update Glossary.kt --- src/main/kotlin/main/Glossary.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/main/Glossary.kt b/src/main/kotlin/main/Glossary.kt index 84148af..01a67c8 100644 --- a/src/main/kotlin/main/Glossary.kt +++ b/src/main/kotlin/main/Glossary.kt @@ -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) {