[vlc-commits] [Git][videolan/vlc][master] macosx: hide controls bar after emptying embedded video queue

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Aug 12 04:34:43 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
bed377dd by Serhii Bykov at 2026-08-12T04:05:40+00:00
macosx: hide controls bar after emptying embedded video queue

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryWindow.m
=====================================
@@ -77,6 +77,7 @@
 
 #import "playqueue/VLCPlayerController.h"
 #import "playqueue/VLCPlayQueueController.h"
+#import "playqueue/VLCPlayQueueModel.h"
 
 #import "views/VLCBottomBarView.h"
 #import "views/VLCDragDropView.h"
@@ -577,6 +578,13 @@ static int ShowController(vlc_object_t * __unused p_this,
     } completionHandler:nil];
 }
 
+- (BOOL)shouldShowControlsBarForPlaybackContext
+{
+    VLCPlayerController * const playerController = self.playQueueController.playerController;
+    return playerController.playerState != VLC_PLAYER_STATE_STOPPED &&
+           self.playQueueController.playQueueModel.numberOfPlayQueueItems > 0;
+}
+
 - (void)presentExternalWindows
 {
     VLCVideoOutputProvider * const voutProvider = VLCMain.sharedInstance.voutProvider;
@@ -673,7 +681,11 @@ static int ShowController(vlc_object_t * __unused p_this,
     self.alphaValue = 1.0;
     [self disableVideoTitleBarMode];
     [self setViewForSelectedSegment];
-    [self showControlsBarImmediately];
+    if ([self shouldShowControlsBarForPlaybackContext]) {
+        [self showControlsBarImmediately];
+    } else {
+        [self hideControlsBarImmediately];
+    }
     [self updateArtworkButtonEnabledState];
 
     if (!self.playQueueController.playerController.currentMediaIsAudioOnly) {



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bed377dd6694d6b15abb560b6299e5c03a2b15ec
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list