mirror of https://code.videolan.org/videolan/vlc
macosx: Stop forcing reload of data sources on notifications in VLCLibraryWindow
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
This commit is contained in:
parent
c1fb764d35
commit
3b5e30f7cf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue