Skip to content
Snippets Groups Projects
Commit a85b89b1 authored by Claudio Cambra's avatar Claudio Cambra Committed by Felix Paul Kühne
Browse files

macosx: Implement reloadData in shows data source


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 0c23d1e5
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,28 @@
#import "VLCLibraryShowsDataSource.h"
#import "library/VLCLibraryCollectionViewFlowLayout.h"
#import "library/VLCLibraryModel.h"
@interface VLCLibraryShowsDataSource ()
@property (readwrite, atomic) NSArray<VLCMediaLibraryShow *> *showsArray;
@end
@implementation VLCLibraryShowsDataSource
- (void)reloadData
{
[(VLCLibraryCollectionViewFlowLayout *)self.collectionView.collectionViewLayout resetLayout];
self.showsArray = self.libraryModel.listOfShows;
[self.showsTableView reloadData];
[self.selectedShowTableView reloadData];
[self.collectionView reloadData];
}
@end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment