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 { fun isSearchable(): Boolean {
val searchableGroup = searchable return searchable ?: (parent?.isSearchable() ?: true)
if (searchableGroup == null) {
val parenGroup = parent
if (parenGroup == null)
return true
else
return parenGroup.isSearchable()
} else {
return searchableGroup
}
} }
var enableAutoType: Boolean? var enableAutoType: Boolean?