X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-File-KDBX;a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FEntry.pm;h=a242def254fd6bcbc8e17dcf31225c26d3a08acc;hp=0ad08a0c898c69010db4b98bafcf749357af3c89;hb=c98fc7d0294e641cf8844306808333bdec4fea2f;hpb=1d0a10e989a4d0487aa13cf4f56e533d3795469d diff --git a/lib/File/KDBX/Entry.pm b/lib/File/KDBX/Entry.pm index 0ad08a0..a242def 100644 --- a/lib/File/KDBX/Entry.pm +++ b/lib/File/KDBX/Entry.pm @@ -438,9 +438,19 @@ sub binary_value { return $binary->{value}; } +sub searching_enabled { + my $self = shift; + my $parent = $self->parent; + return $parent->effective_enable_searching if $parent; + return true; +} + sub auto_type_enabled { - my $entry = shift; - # TODO + my $self = shift; + return false if !$self->auto_type->{enabled}; + my $parent = $self->parent; + return $parent->effective_enable_auto_type if $parent; + return true; } ##############################################################################