mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 11:52:00 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
ca7e5e40fc
commit
a09362d70e
1 changed files with 3 additions and 7 deletions
|
|
@ -100,13 +100,9 @@ NSBundle *tweakBundle = uYouPlusBundle();
|
||||||
}
|
}
|
||||||
%new;
|
%new;
|
||||||
- (void)settingsAction {
|
- (void)settingsAction {
|
||||||
UIViewController *settingsViewController = [self _viewControllerForAncestor];
|
YTSettingsViewController *settingsVC = [[YTSettingsViewController alloc] init];
|
||||||
Class YTSettingsViewControllerClass = NSClassFromString(@"SettingsViewController");
|
id<YTResponder> parentResponder = [settingsVC _parentResponder];
|
||||||
id settingsVC = [[YTSettingsViewControllerClass alloc] initWithEndpoint:applicationSettingsEndpoint];
|
[parentResponder triggerSettingsMenu];
|
||||||
if ([settingsVC respondsToSelector:@selector(_parentResponder)]) {
|
|
||||||
id<YTResponder> parentResponder = [settingsVC performSelector:@selector(_parentResponder)];
|
|
||||||
[parentResponder triggerSettingsMenu];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue