Commit f9f38615 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix podcast view interfering with dropzone

(cherry picked from commit 2b6a8709c5282bf40b3667376d7e67b6ca46b262)
Signed-off-by: default avatarDavid Fuhrmann <dfuhrmann@videolan.org>
parent 10f7cb74
...@@ -1145,6 +1145,12 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1145,6 +1145,12 @@ static VLCMainWindow *_o_sharedInstance = nil;
[[[VLCMain sharedInstance] playlist] setPlaylistRoot: pl_item]; [[[VLCMain sharedInstance] playlist] setPlaylistRoot: pl_item];
} }
// Note the order: first hide the podcast controls, then show the drop zone
if ([[item identifier] isEqualToString:@"podcast{longname=\"Podcasts\"}"])
[self showPodcastControls];
else
[self hidePodcastControls];
PL_LOCK; PL_LOCK;
if ([[[VLCMain sharedInstance] playlist] currentPlaylistRoot] != p_playlist->p_local_category || p_playlist->p_local_category->i_children > 0) if ([[[VLCMain sharedInstance] playlist] currentPlaylistRoot] != p_playlist->p_local_category || p_playlist->p_local_category->i_children > 0)
[self hideDropZone]; [self hideDropZone];
...@@ -1152,11 +1158,6 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1152,11 +1158,6 @@ static VLCMainWindow *_o_sharedInstance = nil;
[self showDropZone]; [self showDropZone];
PL_UNLOCK; PL_UNLOCK;
if ([[item identifier] isEqualToString:@"podcast{longname=\"Podcasts\"}"])
[self showPodcastControls];
else
[self hidePodcastControls];
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged" [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged"
object: nil object: nil
userInfo: nil]; userInfo: nil];
......
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