vlc | branch: master | David Fuhrmann <[email protected]> | Thu Jun 15 
21:03:38 2017 +0200| [f82f7aac9440ea35c464ccc3fc71277048cae0c8] | committer: 
David Fuhrmann

macosx: Fix controls bar state for playlist toggling

In enabled native fullscreen, fix playlist toggling (this is
possible via main menu).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f82f7aac9440ea35c464ccc3fc71277048cae0c8
---

 modules/gui/macosx/VLCMainWindow.m | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/VLCMainWindow.m 
b/modules/gui/macosx/VLCMainWindow.m
index 4009a5abf2..5fed2473fd 100644
--- a/modules/gui/macosx/VLCMainWindow.m
+++ b/modules/gui/macosx/VLCMainWindow.m
@@ -398,6 +398,7 @@ static const float f_min_window_height = 307.;
     }
 }
 
+// Show split view and hide the video view
 - (void)makeSplitViewVisible
 {
     if (self.darkInterface)
@@ -418,13 +419,14 @@ static const float f_min_window_height = 307.;
     [self.videoView setHidden:YES];
     [_splitView setHidden:NO];
     if (self.nativeFullscreenMode && [self fullscreen]) {
-        [[self.controlsBar bottomBarView] setHidden:NO];
+        [self showControlsBar];
         [self.fspanel setNonActive];
     }
 
     [self makeFirstResponder:_playlistScrollView];
 }
 
+// Hides the split view and makes the vout view in foreground
 - (void)makeSplitViewHidden
 {
     if (self.darkInterface)
@@ -435,7 +437,7 @@ static const float f_min_window_height = 307.;
     [_splitView setHidden:YES];
     [self.videoView setHidden:NO];
     if (self.nativeFullscreenMode && [self fullscreen]) {
-        [[self.controlsBar bottomBarView] setHidden:YES];
+        [self hideControlsBar];
         [self.fspanel setActive];
     }
 
@@ -502,6 +504,7 @@ static const float f_min_window_height = 307.;
             [_splitView setHidden: NO];
             [_playlistScrollView setHidden: NO];
             [self.videoView setHidden: YES];
+            [self showControlsBar];
         }
     }
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to