aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/config/ManagedConfig.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-23 23:02:08 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-23 23:02:08 +0100
commit656958937fe29da90d7229b979996a68b5ea5b67 (patch)
tree20396137c6f933194cc8cc612f08d3b35dce0094 /src/main/kotlin/gui/config/ManagedConfig.kt
parent22bc3adbae747ef00e679458b0d407df31a9079b (diff)
downloadFirmament-656958937fe29da90d7229b979996a68b5ea5b67.tar.gz
Firmament-656958937fe29da90d7229b979996a68b5ea5b67.tar.bz2
Firmament-656958937fe29da90d7229b979996a68b5ea5b67.zip
feat: Add /dh command
Diffstat (limited to 'src/main/kotlin/gui/config/ManagedConfig.kt')
-rw-r--r--src/main/kotlin/gui/config/ManagedConfig.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/kotlin/gui/config/ManagedConfig.kt b/src/main/kotlin/gui/config/ManagedConfig.kt
index 641b673..7ddda9e 100644
--- a/src/main/kotlin/gui/config/ManagedConfig.kt
+++ b/src/main/kotlin/gui/config/ManagedConfig.kt
@@ -15,7 +15,6 @@ import org.lwjgl.glfw.GLFW
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonObject
-import kotlin.enums.enumEntries
import kotlin.io.path.createDirectories
import kotlin.io.path.readText
import kotlin.io.path.writeText
@@ -135,7 +134,7 @@ abstract class ManagedConfig(
return StringIdentifiable.createCodec { x() }
}
-// TODO: wait on https://youtrack.jetbrains.com/issue/KT-73434
+ // TODO: wait on https://youtrack.jetbrains.com/issue/KT-73434
// protected inline fun <reified E> choice(
// propertyName: String,
// noinline default: () -> E
@@ -148,6 +147,8 @@ abstract class ManagedConfig(
// default
// )
// }
+ open fun onChange(option: ManagedOption<*>) {
+ }
protected fun duration(
propertyName: String,