Commit 6d2b10ba authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: save a few objc selector lookups

parent 86c4c01c
...@@ -896,22 +896,27 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -896,22 +896,27 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)setVideoplayEnabled - (void)setVideoplayEnabled
{ {
BOOL b_videoPlayback = [[VLCMain sharedInstance] activeVideoPlayback];
if (!b_nonembedded) if (!b_nonembedded)
[o_playlist_btn setEnabled: [[VLCMain sharedInstance] activeVideoPlayback]]; [o_playlist_btn setEnabled: b_videoPlayback];
else else
{ {
[o_playlist_btn setEnabled: NO]; [o_playlist_btn setEnabled: NO];
if (![[VLCMain sharedInstance] activeVideoPlayback]) if (!b_videoPlayback)
[o_nonembedded_window orderOut: nil]; [o_nonembedded_window orderOut: nil];
} }
if( OSX_LION ) if( OSX_LION && b_nativeFullscreenMode )
{
if( [NSApp presentationOptions] | NSApplicationPresentationFullScreen )
{ {
[o_bottombar_view setHidden: [[VLCMain sharedInstance] activeVideoPlayback]]; if( [NSApp presentationOptions] == NSApplicationPresentationFullScreen )
} [o_bottombar_view setHidden: b_videoPlayback];
else
[o_bottombar_view setHidden: NO]; [o_bottombar_view setHidden: NO];
} }
else
{
[o_fullscreen_btn setEnabled: b_videoPlayback];
}
} }
- (void)resizeWindow - (void)resizeWindow
......
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