Browse Source

debugging for dirty settings.

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

5
lib/src/kdbx_object.dart

@ -5,11 +5,15 @@ import 'dart:typed_data';
import 'package:kdbx/src/kdbx_format.dart'; import 'package:kdbx/src/kdbx_format.dart';
import 'package:kdbx/src/kdbx_times.dart'; import 'package:kdbx/src/kdbx_times.dart';
import 'package:kdbx/src/kdbx_xml.dart'; import 'package:kdbx/src/kdbx_xml.dart';
import 'package:logging/logging.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
import 'package:uuid/uuid.dart'; import 'package:uuid/uuid.dart';
import 'package:uuid/uuid_util.dart'; import 'package:uuid/uuid_util.dart';
import 'package:xml/xml.dart'; import 'package:xml/xml.dart';
final _logger = Logger('kdbx.kdbx_object');
class ChangeEvent<T> { class ChangeEvent<T> {
ChangeEvent({this.object, this.isDirty}); ChangeEvent({this.object, this.isDirty});
@ -25,6 +29,7 @@ mixin Changeable<T> {
bool _isDirty = false; bool _isDirty = false;
set isDirty(bool dirty) { set isDirty(bool dirty) {
_logger.finest('changing dirty (old:$_isDirty) $dirty');
_isDirty = dirty; _isDirty = dirty;
_controller.add(ChangeEvent(object: this as T, isDirty: dirty)); _controller.add(ChangeEvent(object: this as T, isDirty: dirty));
} }

Loading…
Cancel
Save