Browse Source

macosx: Fix VLCLibraryMasterDetailViewTableViewDataSource conformance in VLCLibraryFavoritesDataSource

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
master
Claudio Cambra 1 month ago
committed by Felix Paul Kühne
parent
commit
6d7920e148
  1. 1
      modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.h
  2. 5
      modules/gui/macosx/library/favorites-library/VLCLibraryFavoritesDataSource.m

1
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<VLCLibraryGroupHeaderDelegate> headerDelegate;
- (void)reloadData;
- (NSInteger)rowForLibraryItem:(id<VLCMediaLibraryItemProtocol>)libraryItem;

5
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) {

Loading…
Cancel
Save