From e8e894c74a20dba1ea30e6f6d1e6f71e1c9face8 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Sat, 13 Jun 2020 10:27:37 +0900 Subject: [PATCH] bugfix: clean locations & tags after removing entries --- lib/model/source/collection_source.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/model/source/collection_source.dart b/lib/model/source/collection_source.dart index 2870492f3..6687d10f6 100644 --- a/lib/model/source/collection_source.dart +++ b/lib/model/source/collection_source.dart @@ -61,8 +61,9 @@ class CollectionSource with SourceBase, AlbumMixin, LocationMixin, TagMixin { void removeEntries(Iterable entries) { entries.forEach((entry) => entry.removeFromFavourites()); _rawEntries.removeWhere(entries.contains); - // TODO TLAD invalidate locations/tags, like cleaning albums cleanEmptyAlbums(entries.map((entry) => entry.directory).toSet()); + updateLocations(); + updateTags(); invalidateFilterEntryCounts(); eventBus.fire(EntryRemovedEvent(entries)); }