mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 15:02:08 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
f535c919ca
commit
498f5bd3b7
1 changed files with 5 additions and 6 deletions
|
|
@ -64,7 +64,7 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||
%hook YTRightNavigationButtons
|
||||
%property (retain, nonatomic) YTQTMButton *settingsButton;
|
||||
- (NSMutableArray *)buttons {
|
||||
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"];
|
||||
NSString *tweakBundlePath = [[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"];
|
||||
NSString *buttonSettingsPath;
|
||||
if (tweakBundlePath) {
|
||||
NSBundle *tweakBundle = [NSBundle bundleWithPath:tweakBundlePath];
|
||||
|
|
@ -92,11 +92,10 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
|||
}
|
||||
- (NSMutableArray *)visibleButtons {
|
||||
NSMutableArray *retVal = %orig.mutableCopy;
|
||||
[self setLeadingPadding:+10];
|
||||
[self.settingsButton removeFromSuperview];
|
||||
[self addSubview:self.settingsButton];
|
||||
[retVal insertObject:self.settingsButton atIndex:0];
|
||||
}
|
||||
[self setLeadingPadding:+10];
|
||||
[self.settingsButton removeFromSuperview];
|
||||
[self addSubview:self.settingsButton];
|
||||
[retVal insertObject:self.settingsButton atIndex:0];
|
||||
return retVal;
|
||||
}
|
||||
%new;
|
||||
|
|
|
|||
Loading…
Reference in a new issue