aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-12 03:11:06 +0200
committernea <nea@nea.moe>2023-06-12 03:11:06 +0200
commitcd87be6cb3af335b90fe1c92e71bd3e980f3a310 (patch)
treed1afa2413aa604cfe42e07a42ffddfd298229be1 /src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt
parent9508bcc851c736d807ae912e0e5b33e2654b46cc (diff)
downloadFirmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.tar.gz
Firmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.tar.bz2
Firmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.zip
Fix repo settings being saved wrong
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt b/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt
index e090db7..84d24b5 100644
--- a/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt
+++ b/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt
@@ -31,7 +31,7 @@ class StringHandler(val config: ManagedConfig) : ManagedConfig.OptionHandler<Str
}
override fun fromJson(element: JsonElement): String {
- return element.jsonPrimitive.toString()
+ return element.jsonPrimitive.content
}
override fun emitGuiElements(opt: ManagedConfig.Option<String>, guiAppender: GuiAppender) {