Skip to content
Snippets Groups Projects
Commit 3c9195d8 authored by Claudio Cambra's avatar Claudio Cambra Committed by Steve Lhomme
Browse files

macosx: Use library window's displayLibraryView in groups view controller


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent cfb7d8a9
No related branches found
No related tags found
1 merge request!6136macosx: Unify handling of various view's presentation
...@@ -267,14 +267,7 @@ ...@@ -267,14 +267,7 @@
viewToPresent = self.listViewSplitView; viewToPresent = self.listViewSplitView;
} }
NSParameterAssert(viewToPresent != nil); NSParameterAssert(viewToPresent != nil);
[self.libraryWindow displayLibraryView:viewToPresent];
self.libraryTargetView.subviews = @[viewToPresent];
[NSLayoutConstraint activateConstraints:@[
[self.libraryTargetView.topAnchor constraintEqualToAnchor:viewToPresent.topAnchor],
[self.libraryTargetView.bottomAnchor constraintEqualToAnchor:viewToPresent.bottomAnchor],
[self.libraryTargetView.leadingAnchor constraintEqualToAnchor:viewToPresent.leadingAnchor],
[self.libraryTargetView.trailingAnchor constraintEqualToAnchor:viewToPresent.trailingAnchor]
]];
} }
- (void)presentGroup:(VLCMediaLibraryGroup *)group - (void)presentGroup:(VLCMediaLibraryGroup *)group
......
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