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