[vlc-commits] [Git][videolan/vlc][master] macosx: Stop forcing reload of data sources on notifications in VLCLibraryWindow

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Dec 6 18:26:06 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
3b5e30f7 by Claudio Cambra at 2022-12-06T16:46:06+00:00
macosx: Stop forcing reload of data sources on notifications in VLCLibraryWindow

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/VLCLibraryWindow.m


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryWindow.m
=====================================
@@ -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
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3b5e30f7cfff0bdbbb273e21a1469eb1aa3bbf79

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3b5e30f7cfff0bdbbb273e21a1469eb1aa3bbf79
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list