Skip to content

Commit

Permalink
apply to Configurable inner
Browse files Browse the repository at this point in the history
  • Loading branch information
sqlerrorthing committed Feb 14, 2025
1 parent 6a0accd commit 64f541f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ open class Configurable(
name: String,
default: InputUtil.Key = InputUtil.UNKNOWN_KEY,
canExecuteInMenu: Boolean = false
) = KeyValue(parent, name, default, canExecuteInMenu)
) = KeyValue(parent, name, default, canExecuteInMenu).apply { this@Configurable.inner.add(this) }

fun intRange(name: String, default: IntRange, range: IntRange, suffix: String = "") =
rangedValue(name, default, range, suffix, ValueType.INT_RANGE)
Expand Down

0 comments on commit 64f541f

Please sign in to comment.