Remove a useless .let call in ButtonImpl.kt
This commit is contained in:
parent
b0f882f106
commit
2b49238ee7
|
@ -14,17 +14,15 @@ import kotlin.reflect.full.findAnnotation
|
|||
sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) {
|
||||
internal companion object {
|
||||
private fun addButtons(vararg buttons: ButtonImpl) {
|
||||
buttons.groupBy {
|
||||
buttons.groupBy { impl ->
|
||||
ClickGui.clickBoxes.find { box ->
|
||||
it.let { impl ->
|
||||
with(impl) {
|
||||
if (info.shouldSave && info.kind == Type.TOGGLE && !info.parent.shouldHide) {
|
||||
Configuration.enabledFeatures[title]?.let { bool ->
|
||||
toggled = bool
|
||||
}
|
||||
with(impl) {
|
||||
if (info.shouldSave && info.kind == Type.TOGGLE && !info.parent.shouldHide) {
|
||||
Configuration.enabledFeatures[title]?.let { bool ->
|
||||
toggled = bool
|
||||
}
|
||||
}
|
||||
box.isCategory(impl.info.parent)
|
||||
box.isCategory(info.parent)
|
||||
}
|
||||
}
|
||||
}.entries.forEach { entry ->
|
||||
|
|
Loading…
Reference in New Issue