Skip to content

Commit

Permalink
Fixes #199 where "No Images" remains displayed in non-empty albums af…
Browse files Browse the repository at this point in the history
…ter upload
  • Loading branch information
EddyLB committed Oct 28, 2017
1 parent 12f9bd6 commit 75678a6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion piwigo/Albums/Album Pictures/AlbumImagesViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,14 @@ -(NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView

-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
self.noImagesLabel.hidden = self.albumData.images.count != 0;
// Displays "No Images" if needed
if(self.albumData.images.count > 0) {
self.noImagesLabel.hidden = YES;
} else {
self.noImagesLabel.hidden = NO;
}

// Returns number of images or albums
if(section == 1)
{
return self.albumData.images.count;
Expand Down

0 comments on commit 75678a6

Please sign in to comment.