Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
97f077b6 by Claudio Cambra at 2026-03-02T16:06:32+00:00
macosx: Fix table header having the play/queue buttons disabled on startup

Signed-off-by: Claudio Cambra <[email protected]>

- - - - -


1 changed file:

- modules/gui/macosx/library/audio-library/VLCLibraryAudioDataSource.m


Changes:

=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioDataSource.m
=====================================
@@ -712,17 +712,17 @@ NSString * const 
VLCLibraryAudioDataSourceDisplayedCollectionChangedNotification
     NSString *fallbackTitle = nil;
     NSString *fallbackDetail = nil;
 
-    if (self.displayAllArtistsGenresTableEntry && selectedRow == 0) {
-        fallbackTitle = (self.currentParentType == 
VLCMediaLibraryParentGroupTypeGenre)
-            ? _NS("All genres")
-            : _NS("All artists");
-        if (selectedItem != nil) {
-            fallbackDetail = selectedItem.primaryDetailString;
-        }
-    } else if (selectedItem != nil) {
+    if (selectedItem != nil) {
         representedItem = [[VLCLibraryRepresentedItem alloc] 
initWithItem:selectedItem parentType:self.currentParentType];
-        fallbackTitle = selectedItem.displayString;
         fallbackDetail = selectedItem.primaryDetailString;
+
+        if (self.displayAllArtistsGenresTableEntry && selectedRow == 0) {
+            fallbackTitle = (self.currentParentType == 
VLCMediaLibraryParentGroupTypeGenre)
+                ? _NS("All genres")
+                : _NS("All artists");
+        } else {
+            fallbackTitle = selectedItem.displayString;
+        }
     }
 
     [self.headerDelegate updateHeaderForTableView:tableView



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/97f077b644129a6cccb0ffdac3d096a28f68a105

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/97f077b644129a6cccb0ffdac3d096a28f68a105
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