[vlc-commits] [Git][videolan/vlc][master] macos: keep audio grid detail expanded after item updates

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Sep 8 11:20:06 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
86c09f0e by Serhii Bykov at 2026-09-08T13:06:26+02:00
macos: keep audio grid detail expanded after item updates

- - - - -


1 changed file:

- modules/gui/macosx/library/audio-library/VLCLibraryAudioDataSource.m


Changes:

=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioDataSource.m
=====================================
@@ -751,28 +751,26 @@ NSString * const VLCLibraryAudioDataSourceDisplayedCollectionChangedNotification
 
 - (void)reloadDataForMediaLibraryItem:(const id<VLCMediaLibraryItemProtocol>)item
 {
-    [self resetLayoutsForOperation:^{
-        const NSUInteger index = [self indexForMediaLibraryItemWithId:item.libraryID];
-        if (index == NSNotFound) {
-            return;
-        }
+    const NSUInteger index = [self indexForMediaLibraryItemWithId:item.libraryID];
+    if (index == NSNotFound) {
+        return;
+    }
 
-        [self.displayedCollection replaceObjectAtIndex:index withObject:item];
+    [self.displayedCollection replaceObjectAtIndex:index withObject:item];
 
-        NSIndexPath * const indexPath = [NSIndexPath indexPathForItem:index inSection:0];
-        NSIndexSet * const rowIndexSet = [NSIndexSet indexSetWithIndex:index];
+    NSIndexPath * const indexPath = [NSIndexPath indexPathForItem:index inSection:0];
+    NSIndexSet * const rowIndexSet = [NSIndexSet indexSetWithIndex:index];
 
-        const NSRange songsTableColumnRange = NSMakeRange(0, self->_songsTableView.numberOfColumns);
-        NSIndexSet * const songsTableColumnIndexSet = [NSIndexSet indexSetWithIndexesInRange:songsTableColumnRange];
+    const NSRange songsTableColumnRange = NSMakeRange(0, self->_songsTableView.numberOfColumns);
+    NSIndexSet * const songsTableColumnIndexSet = [NSIndexSet indexSetWithIndexesInRange:songsTableColumnRange];
 
-        [self.collectionView reloadItemsAtIndexPaths:[NSSet setWithObject:indexPath]];
-        [self.songsTableView reloadDataForRowIndexes:rowIndexSet columnIndexes:songsTableColumnIndexSet];
+    [self.collectionView reloadItemsAtIndexPaths:[NSSet setWithObject:indexPath]];
+    [self.songsTableView reloadDataForRowIndexes:rowIndexSet columnIndexes:songsTableColumnIndexSet];
 
-        // Don't update gridModeListSelectionCollectionView, let its VLCLibraryAudioGroupDataSource do it.
-        // Also don't update collectionSelectionTableView, as this will only show artists/genres/albums
+    // Don't update gridModeListSelectionCollectionView, let its VLCLibraryAudioGroupDataSource do it.
+    // Also don't update collectionSelectionTableView, as this will only show artists/genres/albums
 
-        [self.carouselView reloadData];
-    }];
+    [self.carouselView reloadData];
 }
 
 - (void)deleteDataForMediaLibraryItem:(const id<VLCMediaLibraryItemProtocol>)item



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/86c09f0e1dc152e6986e55322316ac42c7c4e16f

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/86c09f0e1dc152e6986e55322316ac42c7c4e16f
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list