Commit 0919f0cb authored by David Fuhrmann's avatar David Fuhrmann

macosx: when main window is hidden, let playlist menu item only display the window

Furthermore, this commit fixes close button functionality in dark ui style when video is playing
(cherry picked from commit 2709f26e4112d8f1745cec7893efeb45368bb814)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 9459dd3a
...@@ -634,9 +634,10 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -634,9 +634,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (IBAction)togglePlaylist:(id)sender - (IBAction)togglePlaylist:(id)sender
{ {
if (![self isVisible]) if (![self isVisible] && sender != nil)
{ {
[self makeKeyAndOrderFront: sender]; [self makeKeyAndOrderFront: sender];
return;
} }
BOOL b_activeVideo = [[VLCMain sharedInstance] activeVideoPlayback]; BOOL b_activeVideo = [[VLCMain sharedInstance] activeVideoPlayback];
......
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