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

macosx: Use library window's displayLibraryView in media source view controller


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 89a12669
No related branches found
No related tags found
1 merge request!6136macosx: Unify handling of various view's presentation
......@@ -168,16 +168,7 @@
- (void)presentMediaSourceView:(VLCLibrarySegmentType)viewSegment
{
self.libraryTargetView.subviews = @[];
if (_mediaSourceView.superview == nil) {
_mediaSourceView.translatesAutoresizingMaskIntoConstraints = NO;
self.libraryTargetView.subviews = @[_mediaSourceView];
NSDictionary *dict = NSDictionaryOfVariableBindings(_mediaSourceView);
[self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[_mediaSourceView(>=572.)]|" options:0 metrics:0 views:dict]];
[self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[_mediaSourceView(>=444.)]|" options:0 metrics:0 views:dict]];
}
[self.libraryWindow displayLibraryView:self.mediaSourceView];
_baseDataSource.mediaSourceMode = viewSegment == VLCLibraryBrowseSegment ? VLCMediaSourceModeLAN : VLCMediaSourceModeInternet;
[_baseDataSource reloadViews];
}
......
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