mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-04-04 21:37:37 +03:00
fix: Smaller isSearchable implementation
This commit is contained in:
parent
b713237ec3
commit
372b2aebe0
1 changed files with 1 additions and 10 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue