Browse Source

mark as non-dirty when converted toXml

remove-cryptography-dependency
Herbert Poul 5 years ago
parent
commit
f4b87e340c
  1. 3
      lib/src/kdbx_object.dart

3
lib/src/kdbx_object.dart

@ -44,8 +44,11 @@ abstract class KdbxNode with Changeable<KdbxNode> {
// @protected // @protected
// String text(String nodeName) => _opt(nodeName)?.text; // String text(String nodeName) => _opt(nodeName)?.text;
/// must only be called to save this object.
/// will mark this object as not dirty.
@mustCallSuper @mustCallSuper
XmlElement toXml() { XmlElement toXml() {
_isDirty = false;
final el = node.copy() as XmlElement; final el = node.copy() as XmlElement;
return el; return el;
} }

Loading…
Cancel
Save