diff --git a/lib/src/kdbx_object.dart b/lib/src/kdbx_object.dart index 7bed415..bd6a3ab 100644 --- a/lib/src/kdbx_object.dart +++ b/lib/src/kdbx_object.dart @@ -44,8 +44,11 @@ abstract class KdbxNode with Changeable { // @protected // String text(String nodeName) => _opt(nodeName)?.text; + /// must only be called to save this object. + /// will mark this object as not dirty. @mustCallSuper XmlElement toXml() { + _isDirty = false; final el = node.copy() as XmlElement; return el; }