mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
d9eba087fc
commit
b6ec2f5f1a
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue