macosx: Stop forcing reload of data sources on notifications in VLCLibraryWindow

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
This commit is contained in:
Claudio Cambra 2022-12-03 01:20:24 +01:00 committed by Jean-Baptiste Kempf
parent c1fb764d35
commit 3b5e30f7cf
1 changed files with 0 additions and 38 deletions

View File

@ -199,30 +199,6 @@ static void addShadow(NSImageView *__unsafe_unretained imageView)
selector:@selector(shouldShowController:)
name:VLCWindowShouldShowController
object:nil];
[notificationCenter addObserver:self
selector:@selector(updateLibraryRepresentation:)
name:VLCLibraryModelAudioMediaListUpdated
object:nil];
[notificationCenter addObserver:self
selector:@selector(updateLibraryRepresentation:)
name:VLCLibraryModelArtistListUpdated
object:nil];
[notificationCenter addObserver:self
selector:@selector(updateLibraryRepresentation:)
name:VLCLibraryModelAlbumListUpdated
object:nil];
[notificationCenter addObserver:self
selector:@selector(updateLibraryRepresentation:)
name:VLCLibraryModelGenreListUpdated
object:nil];
[notificationCenter addObserver:self
selector:@selector(updateLibraryRepresentation:)
name:VLCLibraryModelVideoMediaListUpdated
object:nil];
[notificationCenter addObserver:self
selector:@selector(updateLibraryRepresentation:)
name:VLCLibraryModelRecentMediaListUpdated
object:nil];
[notificationCenter addObserver:self
selector:@selector(shuffleStateUpdated:)
name:VLCPlaybackOrderChanged
@ -985,20 +961,6 @@ static void addShadow(NSImageView *__unsafe_unretained imageView)
}
}
#pragma mark - library representation and interaction
- (void)updateLibraryRepresentation:(NSNotification *)aNotification
{
if (_videoLibraryView.superview != nil) {
if (self.gridVsListSegmentedControl.selectedSegment == VLCGridViewModeSegment) {
[_libraryVideoCollectionViewsStackViewController reloadData];
} else {
[_libraryVideoTableViewDataSource reloadData];
}
} else if (_audioLibraryView.superview != nil) {
[_libraryAudioDataSource reloadAppearance];
}
}
#pragma mark -
#pragma mark respond to core events