Commit dbb7c718 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

macosx: save a few objc selector lookups

(cherry picked from commit 6d2b10ba8d689659135928c8d168198cfcfae725)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 89a2a9bb
......@@ -896,21 +896,26 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)setVideoplayEnabled
{
BOOL b_videoPlayback = [[VLCMain sharedInstance] activeVideoPlayback];
if (!b_nonembedded)
[o_playlist_btn setEnabled: [[VLCMain sharedInstance] activeVideoPlayback]];
[o_playlist_btn setEnabled: b_videoPlayback];
else
{
[o_playlist_btn setEnabled: NO];
if (![[VLCMain sharedInstance] activeVideoPlayback])
if (!b_videoPlayback)
[o_nonembedded_window orderOut: nil];
}
if( OSX_LION )
if( OSX_LION && b_nativeFullscreenMode )
{
if( [NSApp presentationOptions] | NSApplicationPresentationFullScreen )
{
[o_bottombar_view setHidden: [[VLCMain sharedInstance] activeVideoPlayback]];
}
[o_bottombar_view setHidden: NO];
if( [NSApp presentationOptions] == NSApplicationPresentationFullScreen )
[o_bottombar_view setHidden: b_videoPlayback];
else
[o_bottombar_view setHidden: NO];
}
else
{
[o_fullscreen_btn setEnabled: b_videoPlayback];
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment