From 07c2b22a297b37fb8b87f5030fee40c0a33a7be5 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Tue, 25 Jun 2024 22:17:20 -0500 Subject: [PATCH] Update uYouPlus.xm --- Sources/uYouPlus.xm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 833d252..df550a8 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -99,10 +99,11 @@ NSBundle *tweakBundle = uYouPlusBundle(); return retVal; } %new; -- (void)settingsAction { +- (void)settingsAction { YTSettingsViewController *settingsVC = [[YTSettingsViewController alloc] init]; - id parentResponder = [settingsVC _parentResponder]; - [parentResponder triggerSettingsMenu]; + UIViewController *rootVC = [UIApplication sharedApplication].keyWindow.rootViewController; + UINavigationController *navController = (UINavigationController *)rootVC; + [navController pushViewController:settingsVC animated:YES]; } %end