diff options
author | nea <nea@nea.moe> | 2023-06-12 01:37:30 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-12 01:37:30 +0200 |
commit | a1fb86f653a80a9029da65394ca95146dc570693 (patch) | |
tree | 30d340579016077f5555eb5267b1d8937fe5c8a5 /src/main/kotlin/moe/nea/firmament/gui | |
parent | a74a2fb1d571da6a4a87578f354b18921b01d8d4 (diff) | |
download | Firmament-a1fb86f653a80a9029da65394ca95146dc570693.tar.gz Firmament-a1fb86f653a80a9029da65394ca95146dc570693.tar.bz2 Firmament-a1fb86f653a80a9029da65394ca95146dc570693.zip |
Fix config resets
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/gui')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt b/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt index fcfc468..417a470 100644 --- a/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt +++ b/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt @@ -85,8 +85,9 @@ abstract class ManagedConfig(val name: String) { e ) } + } else { + value = default() } - value = default() } internal fun toJson(): JsonElement? { |