Use more null checks in ButtonImpl.kt
This commit is contained in:
parent
686959a9aa
commit
e533e92198
|
@ -28,12 +28,12 @@ sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) {
|
|||
}
|
||||
}
|
||||
}
|
||||
box.name!!.key == impl.info.parent.translationKey
|
||||
box.name?.key ?: box.name.toString() == impl.info.parent.translationKey
|
||||
}
|
||||
}
|
||||
}.entries.forEach { entry ->
|
||||
with(entry) {
|
||||
entry.value.forEach {
|
||||
value.forEach {
|
||||
key?.buttons!!.add(it)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue