From 6d7920e148e4839155dd61c43cde2ccd84679d3d Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 6 Mar 2026 22:54:36 +0800 Subject: [PATCH] macosx: Fix VLCLibraryMasterDetailViewTableViewDataSource conformance in VLCLibraryFavoritesDataSource Signed-off-by: Claudio Cambra --- .../favorites-library/VLCLibraryFavoritesDataSource.h | 1 + .../favorites-library/VLCLibraryFavoritesDataSource.m | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.h b/modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.h index 247bcd34fb..da2b15adae 100644 --- a/modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.h +++ b/modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.h @@ -48,6 +48,7 @@ typedef NS_ENUM(NSUInteger, VLCLibraryFavoritesSection) { @property (readwrite, weak) NSCollectionView *collectionView; @property (readwrite, weak) NSTableView *masterTableView; @property (readwrite, weak) NSTableView *detailTableView; +@property (readwrite, weak, nullable) id headerDelegate; - (void)reloadData; - (NSInteger)rowForLibraryItem:(id)libraryItem; diff --git a/modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.m b/modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.m index ef71e0a7f3..0ab0baca12 100644 --- a/modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.m +++ b/modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.m @@ -431,6 +431,11 @@ NSString * const VLCLibraryFavoritesDataSourceDisplayedCollectionChangedNotifica fallbackDetail:fallbackDetail]; } +- (void)updateHeaderInTableView:(NSTableView *)detailTableView forMasterSelection:(NSTableView *)masterTableView +{ + [self updateHeaderForMasterSelection]; +} + - (VLCMediaLibraryParentGroupType)currentParentType { if (self.masterTableView.selectedRow > -1) {