From a09362d70e31bc3998aada0c7b640614e5b9aba5 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:24:00 -0500 Subject: [PATCH] Update uYouPlus.xm --- Sources/uYouPlus.xm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index b2da141..833d252 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -100,13 +100,9 @@ NSBundle *tweakBundle = uYouPlusBundle(); } %new; - (void)settingsAction { - UIViewController *settingsViewController = [self _viewControllerForAncestor]; - Class YTSettingsViewControllerClass = NSClassFromString(@"SettingsViewController"); - id settingsVC = [[YTSettingsViewControllerClass alloc] initWithEndpoint:applicationSettingsEndpoint]; - if ([settingsVC respondsToSelector:@selector(_parentResponder)]) { - id parentResponder = [settingsVC performSelector:@selector(_parentResponder)]; - [parentResponder triggerSettingsMenu]; - } + YTSettingsViewController *settingsVC = [[YTSettingsViewController alloc] init]; + id parentResponder = [settingsVC _parentResponder]; + [parentResponder triggerSettingsMenu]; } %end