mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
Add dialog with a warning to copy, add the setting to copy the protected custom fields #139
This commit is contained in:
1 parent
3b5ef56c16
commit
32497a22d2
17 files changed
+139
-100
No files matched your search
@@ -44,6 +44,22 @@ public class ExtraFields implements Serializable, Cloneable {
|
||||
return !getCustomProtectedFields().keySet().isEmpty();
|
||||
}
|
||||
|
||||
public boolean containsCustomFieldsProtected() {
|
||||
for (Map.Entry<String, ProtectedString> field : getCustomProtectedFields().entrySet()) {
|
||||
if (field.getValue().isProtected())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean containsCustomFieldsNotProtected() {
|
||||
for (Map.Entry<String, ProtectedString> field : getCustomProtectedFields().entrySet()) {
|
||||
if (!field.getValue().isProtected())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getProtectedStringValue(String key) {
|
||||
ProtectedString value = fields.get(key);
|
||||
if ( value == null ) return "";
|
||||
|
||||
Reference in new issue
Block a user