fix: Smaller isSearchable implementation

This commit is contained in:
J-Jamet 2023-05-14 13:22:51 +02:00
parent b713237ec3
commit 372b2aebe0

View file

@ -445,16 +445,7 @@ class Group : Node, GroupVersionedInterface<Group, Entry> {
}
fun isSearchable(): Boolean {
val searchableGroup = searchable
if (searchableGroup == null) {
val parenGroup = parent
if (parenGroup == null)
return true
else
return parenGroup.isSearchable()
} else {
return searchableGroup
}
return searchable ?: (parent?.isSearchable() ?: true)
}
var enableAutoType: Boolean?