Skip to content

Commit

Permalink
macosx: Fix crash due to visual constraint variable error in video vi…
Browse files Browse the repository at this point in the history
…ew controller

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and fkuehne committed Sep 12, 2024
1 parent fe14016 commit 635ae6f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,10 @@ - (void)presentPlaceholderVideoLibraryView
} else {
self.libraryTargetView.subviews = @[self.emptyLibraryView];
}
NSDictionary *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 *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.");
Expand Down

0 comments on commit 635ae6f

Please sign in to comment.