fix: skip albums selected or excluded from backups from deletions (#21116)
* skip albums selected or excluded from backups from deletions * filter empty local albums from library page --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -18,7 +18,9 @@ final localAlbumServiceProvider = Provider<LocalAlbumService>(
|
||||
);
|
||||
|
||||
final localAlbumProvider = FutureProvider<List<LocalAlbum>>(
|
||||
(ref) => LocalAlbumService(ref.watch(localAlbumRepository)).getAll(sortBy: {SortLocalAlbumsBy.newestAsset}),
|
||||
(ref) => LocalAlbumService(ref.watch(localAlbumRepository))
|
||||
.getAll(sortBy: {SortLocalAlbumsBy.newestAsset})
|
||||
.then((albums) => albums.where((album) => album.assetCount > 0).toList()),
|
||||
);
|
||||
|
||||
final localAlbumThumbnailProvider = FutureProvider.family<LocalAsset?, String>(
|
||||
|
||||
Reference in New Issue
Block a user