Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
atakangl committed Aug 24, 2021
1 parent 8853f3b commit 4840eba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hive/lib/src/box/keystore.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class Keystore<E> {
transaction.added.add(frame.key);
}

var deletedFrame = insert(frame);
var deletedFrame = insert(frame, notify: frame == newFrames.last);
if (deletedFrame != null) {
transaction.deleted[frame.key] = deletedFrame;
}
Expand Down Expand Up @@ -226,7 +226,7 @@ class Keystore<E> {
}

_store.insert(key, deletedFrame);
_notifier.notify(deletedFrame!);
if (key == canceled.deleted.keys.last) _notifier.notify(deletedFrame!);
}

added_loop:
Expand All @@ -245,7 +245,7 @@ class Keystore<E> {
}
if (!isOverride) {
_store.delete(key);
_notifier.notify(Frame.deleted(key));
if (key == canceled.added.last) _notifier.notify(Frame.deleted(key));
}
}
}
Expand All @@ -260,7 +260,7 @@ class Keystore<E> {
if (frame.value is HiveObjectMixin) {
(frame.value as HiveObjectMixin).dispose();
}
_notifier.notify(Frame.deleted(frame.key));
if (frame == frameList.last) _notifier.notify(Frame.deleted(frame.key));
}

_deletedEntries = 0;
Expand Down

0 comments on commit 4840eba

Please sign in to comment.