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 <[email protected]>

- - - - -


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
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to