From e5fec358d77e9b92a4053aae1b59ec7ec78dcb89 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Mon, 25 May 2020 11:50:25 +0200 Subject: [PATCH] if xml element is set to the same value, ignore the set, mark not as dirty. --- lib/src/kdbx_xml.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/kdbx_xml.dart b/lib/src/kdbx_xml.dart index 5426e37..572f77d 100644 --- a/lib/src/kdbx_xml.dart +++ b/lib/src/kdbx_xml.dart @@ -72,6 +72,9 @@ abstract class KdbxSubTextNode extends KdbxSubNode { @override void set(T value) { + if (get() == value) { + return; + } node.isDirty = true; final el = node.node.findElements(name).singleWhere((x) => true, orElse: () {