[vlc-commits] [Git][videolan/vlc][master] macosx: Reset collectionview's VLCLibraryCollectionViewFlowLayout when...

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Mon Jul 1 11:18:34 UTC 2024



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


Commits:
b48c3681 by Claudio Cambra at 2024-07-01T10:41:43+00:00
macosx: Reset collectionview's VLCLibraryCollectionViewFlowLayout when reloading data in VLCLibraryAudioGroupDataSource

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

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioGroupDataSource.m
=====================================
@@ -128,6 +128,10 @@
 {
     NSArray<NSCollectionView *> * const collectionViews = self.collectionViews;
     for (NSCollectionView * const collectionView in collectionViews) {
+        NSCollectionViewLayout * const collectionViewLayout = collectionView.collectionViewLayout;
+        if ([collectionViewLayout isKindOfClass:VLCLibraryCollectionViewFlowLayout.class]) {
+            [(VLCLibraryCollectionViewFlowLayout *)collectionViewLayout resetLayout];
+        }
         [collectionView reloadData];
     }
 }



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b48c3681bf423e87843fc9c3a1b9360472203773
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