diff --git a/keepmenu/view.py b/keepmenu/view.py index 02dd514..2592a9c 100644 --- a/keepmenu/view.py +++ b/keepmenu/view.py @@ -64,7 +64,12 @@ def view_entry(kp_entry): for attr in attrs: if attr not in TOTP_FIELDS: val = attrs.get(attr) or "" - value = val or "None" if len(val.split('\n')) <= 1 else "" + protected = kp_entry.is_custom_property_protected(attr) if \ + hasattr(kp_entry, 'is_custom_property_protected') \ + else False + value = val or "None" if len(val.split('\n')) <= 1 and \ + not protected \ + else "" fields.append(f'{attr}: {value}') sel = dmenu_select(len(fields), inp="\n".join(fields)) diff --git a/tests/test.kdbx b/tests/test.kdbx index 28c973e..9f7d2a1 100644 Binary files a/tests/test.kdbx and b/tests/test.kdbx differ