[vlc-commits] [Git][videolan/vlc][master] macosx: Fix initial state of play queue toggle if the view is not present...

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon May 6 10:45:38 UTC 2024



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
ef1baaee by Claudio Cambra at 2024-05-06T10:10:55+00:00
macosx: Fix initial state of play queue toggle if the view is not present within the library split view

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/VLCLibraryWindowToolbarDelegate.m


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryWindowToolbarDelegate.m
=====================================
@@ -132,9 +132,10 @@ NSString * const VLCLibraryWindowTrackingSeparatorToolbarItemIdentifier =
 {
     NSView * const playlistView =
         self.libraryWindow.splitViewController.playlistSidebarViewController.view;
+    NSSplitView * const sv = self.libraryWindow.mainSplitView;
     self.libraryWindow.playQueueToggle.state =
-        [self.libraryWindow.mainSplitView isSubviewCollapsed:playlistView] ?
-            NSControlStateValueOff : NSControlStateValueOn;
+        ![sv.arrangedSubviews containsObject:playlistView] || [sv isSubviewCollapsed:playlistView] ?
+                NSControlStateValueOff : NSControlStateValueOn;
 }
 
 #pragma mark - convenience method for configuration of toolbar items layout



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

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