mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-04-06 06:17:36 +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 {
|
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?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue