Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-06-22 19:46:28 -05:00 committed by GitHub
parent d9eba087fc
commit b6ec2f5f1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,8 +86,9 @@ NSBundle *tweakBundle = uYouPlusBundle();
NSMutableArray *retVal = %orig.mutableCopy;
[self setLeadingPadding:+10];
if (self.settingsButton) {
if ([self _viewControllerForAncestor] != nil && [[self _viewControllerForAncestor] respondsToSelector:@selector(getPivotIdentifier)]) {
NSString *pivotIdentifier = [[self _viewControllerForAncestor] getPivotIdentifier];
YTIPivotBarItemRenderer *currentPivot = [self _viewControllerForAncestor];
if (currentPivot && [currentPivot respondsToSelector:@selector(pivot_identifier)]) {
NSString *pivotIdentifier = [currentPivot pivot_identifier];
if ([pivotIdentifier isEqualToString:@"FElibrary"]) { // Exclude Button from rendering in Library/You Tab
return retVal;
}