[vlc-commits] [Git][videolan/vlc][master] macosx: Prevent selection of the outer cells in the audio group selection table view
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Fri Aug 12 11:23:23 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
a135d8b6 by Claudio Cambra at 2022-08-12T11:08:02+00:00
macosx: Prevent selection of the outer cells in the audio group selection table view
Signed-off-by: Claudio Cambra <claudio.cambra at gmail.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/VLCLibraryAudioDataSource.m
Changes:
=====================================
modules/gui/macosx/library/VLCLibraryAudioDataSource.m
=====================================
@@ -406,4 +406,13 @@ viewForSupplementaryElementOfKind:(NSCollectionViewSupplementaryElementKind)kind
return cellView == nil ? -1 : cellView.height;
}
+- (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:(NSInteger)rowIndex
+{
+ if(tableView == [[[VLCMain sharedInstance] libraryWindow] audioGroupSelectionTableView]) {
+ return NO;
+ }
+
+ return YES;
+}
+
@end
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a135d8b6adb2548bb955be0e5e03bb62f0958ec6
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a135d8b6adb2548bb955be0e5e03bb62f0958ec6
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