We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fb0738 commit 48a79adCopy full SHA for 48a79ad
src/main/kotlin/com/lambda/config/Setting.kt
@@ -182,8 +182,8 @@ class Setting<T : SettingCore<R>, R : Any>(
182
fun ImGuiBuilder.buildLayout() = with(core) { buildLayout() }
183
fun CommandBuilder.buildCommand(registry: CommandRegistryAccess) = with(core) { buildCommand(registry) }
184
185
- fun toJson() = core.toJson()
186
- fun loadFromJson(serialized: JsonElement) = core.loadFromJson(serialized)
+ fun toJson() = originalCore.toJson()
+ fun loadFromJson(serialized: JsonElement) = originalCore.loadFromJson(serialized)
187
188
class ValueListener<T>(val requiresValueChange: Boolean, val execute: (from: T, to: T) -> Unit)
189
0 commit comments