[vlc-commits] [Git][videolan/vlc][master] macosx: Fix broken empty library view dictionaries of variable bindings
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Oct 1 15:27:46 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
915ce30b by Claudio Cambra at 2024-10-01T14:56:06+00:00
macosx: Fix broken empty library view dictionaries of variable bindings
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
2 changed files:
- modules/gui/macosx/library/audio-library/VLCLibraryAudioViewController.m
- modules/gui/macosx/library/home-library/VLCLibraryHomeViewController.m
Changes:
=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioViewController.m
=====================================
@@ -375,9 +375,10 @@ NSString *VLCLibraryPlaceholderAudioViewIdentifier = @"VLCLibraryPlaceholderAudi
} else {
self.libraryTargetView.subviews = @[self.emptyLibraryView];
}
- NSDictionary * const dict = NSDictionaryOfVariableBindings(self.emptyLibraryView);
- [self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[self.emptyLibraryView(>=572.)]|" options:0 metrics:0 views:dict]];
- [self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[self.emptyLibraryView(>=444.)]|" options:0 metrics:0 views:dict]];
+ NSView * const emptyLibraryView = self.emptyLibraryView;
+ NSDictionary * const dict = NSDictionaryOfVariableBindings(emptyLibraryView);
+ [self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[emptyLibraryView(>=572.)]|" options:0 metrics:0 views:dict]];
+ [self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[emptyLibraryView(>=444.)]|" options:0 metrics:0 views:dict]];
self.emptyLibraryView.identifier = VLCLibraryPlaceholderAudioViewIdentifier;
}
=====================================
modules/gui/macosx/library/home-library/VLCLibraryHomeViewController.m
=====================================
@@ -222,9 +222,10 @@
} else {
self.libraryTargetView.subviews = @[self.emptyLibraryView];
}
- NSDictionary * const dict = NSDictionaryOfVariableBindings(self.emptyLibraryView);
- [self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[_emptyLibraryView(>=572.)]|" options:0 metrics:0 views:dict]];
- [self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[_emptyLibraryView(>=444.)]|" options:0 metrics:0 views:dict]];
+ NSView * const emptyLibraryView = self.emptyLibraryView;
+ NSDictionary * const dict = NSDictionaryOfVariableBindings(emptyLibraryView);
+ [self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[emptyLibraryView(>=572.)]|" options:0 metrics:0 views:dict]];
+ [self.libraryTargetView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[emptyLibraryView(>=444.)]|" options:0 metrics:0 views:dict]];
self.placeholderImageView.image = [NSImage imageNamed:@"placeholder-video"];
self.placeholderLabel.stringValue = _NS("Your favorite videos will appear here.\nGo to the Browse section to add videos you love.");
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/915ce30b037b10f1d17297262fa7fcace22a5e15
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/915ce30b037b10f1d17297262fa7fcace22a5e15
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list