Browse Source

macosx: Add method to VLCPlaylistDataSource to scroll to the current playlist item

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
pull/144/head
Claudio Cambra 3 years ago
committed by Steve Lhomme
parent
commit
4b2b05ca57
  1. 1
      modules/gui/macosx/playlist/VLCPlaylistDataSource.h
  2. 5
      modules/gui/macosx/playlist/VLCPlaylistDataSource.m

1
modules/gui/macosx/playlist/VLCPlaylistDataSource.h

@ -36,6 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)prepareForUse;
- (void)playlistUpdated;
- (void)scrollToCurrentPlaylistItem;
@end

5
modules/gui/macosx/playlist/VLCPlaylistDataSource.m

@ -180,4 +180,9 @@ static NSString *VLCPlaylistCellIdentifier = @"VLCPlaylistCellIdentifier";
return YES;
}
- (void)scrollToCurrentPlaylistItem
{
[_tableView scrollRowToVisible:_playlistController.currentPlaylistIndex];
}
@end

Loading…
Cancel
Save