bugfix: clean locations & tags after removing entries
This commit is contained in:
parent
f8deacd8b6
commit
e8e894c74a
1 changed files with 2 additions and 1 deletions
|
@ -61,8 +61,9 @@ class CollectionSource with SourceBase, AlbumMixin, LocationMixin, TagMixin {
|
|||
void removeEntries(Iterable<ImageEntry> 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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue