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

macosx: React to show count changes in video library view controller


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 406324fd
No related branches found
No related tags found
No related merge requests found
......@@ -405,14 +405,21 @@
NSParameterAssert(aNotification);
VLCLibraryModel *model = VLCMain.sharedInstance.libraryController.libraryModel;
const NSUInteger videoCount = model.numberOfVideoMedia;
const NSUInteger showsCount = model.numberOfShows;
if (_libraryWindow.librarySegmentType == VLCLibraryVideoSegment &&
((videoCount == 0 && ![_libraryTargetView.subviews containsObject:_emptyLibraryView]) ||
(videoCount > 0 && ![_libraryTargetView.subviews containsObject:_videoLibraryView])) &&
_libraryWindow.videoViewController.view.hidden) {
[self updatePresentedView];
}
[self updatePresentedVideoLibraryView];
} else if (_libraryWindow.librarySegmentType == VLCLibraryShowsVideoSubSegment &&
((showsCount == 0 && ![_libraryTargetView.subviews containsObject:_emptyLibraryView]) ||
(showsCount > 0 && ![_libraryTargetView.subviews containsObject:_videoLibraryView])) &&
_libraryWindow.videoViewController.view.hidden) {
[self updatePresentedShowsLibraryView];
}
}
- (void)presentLibraryItemWaitForCollectionViewDataSourceFinished:(NSNotification *)notification
......
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