Skip to content
Snippets Groups Projects
Commit b6b5c9ae authored by Claudio Cambra's avatar Claudio Cambra Committed by Felix Paul Kühne
Browse files

macosx: Use retained media source library view controller on segment property in library window


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 6f81a739
No related branches found
No related tags found
1 merge request!6001macosx: Avoid retaining objects that are not necessary to keep alive
......@@ -431,15 +431,13 @@ static void addShadow(NSImageView *__unsafe_unretained imageView)
const VLCLibrarySegmentType segmentType = self.librarySegmentType;
[self.toolbarDelegate layoutForSegment:segmentType];
VLCLibraryMediaSourceViewController * const lvc =
[[VLCLibraryMediaSourceViewController alloc] initWithLibraryWindow:self];
if (segmentType == VLCLibraryBrowseSegment) {
[lvc presentBrowseView];
[self.libraryMediaSourceViewController presentBrowseView];
} else if (segmentType == VLCLibraryStreamsSegment) {
[lvc presentStreamsView];
[self.libraryMediaSourceViewController presentStreamsView];
}
_librarySegmentViewController = lvc;
_librarySegmentViewController = self.libraryMediaSourceViewController;
}
- (void)showGroupsLibrary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment