Browse Source

Show delete empty album option if there are more than three empty albums

Neeraj Gupta 2 years ago
parent
commit
d8847ef572
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/ui/collections_gallery_widget.dart

+ 1 - 1
lib/ui/collections_gallery_widget.dart

@@ -124,7 +124,7 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
     List<CollectionWithThumbnail>? collections,
   ) {
     final bool showDeleteAlbumsButton =
-        collections!.where((c) => c.thumbnail == null).length > 4;
+        collections!.where((c) => c.thumbnail == null).length >= 3;
     final TextStyle trashAndHiddenTextStyle = Theme.of(context)
         .textTheme
         .subtitle1!