Commit 77956b05 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed playlist and close entries in the Window menu (close #6239)

the playlist item automatically reveals the main window now, in case it is hidden. the close item correctly closes the detached video output window now, when using the gray ui style
parent 52d209b8
......@@ -635,6 +635,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (IBAction)togglePlaylist:(id)sender
{
if (![self isVisible])
{
[self makeKeyAndOrderFront: sender];
}
BOOL b_activeVideo = [[VLCMain sharedInstance] activeVideoPlayback];
if ( !b_splitview_removed && ( (([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask) != 0 && !b_activeVideo) || (b_nonembedded && b_activeVideo && sender != nil) ))
......@@ -2249,7 +2254,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)performClose:(id)sender
{
[[VLCMainWindow sharedInstance] performClose: sender];
if (b_dark_interface)
[[VLCMainWindow sharedInstance] performClose: sender];
else
[super performClose: sender];
}
- (void)performMiniaturize:(id)sender
......
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