Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-06-25 22:17:20 -05:00 committed by GitHub
parent 36f762136d
commit 07c2b22a29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,10 +99,11 @@ NSBundle *tweakBundle = uYouPlusBundle();
return retVal;
}
%new;
- (void)settingsAction {
- (void)settingsAction {
YTSettingsViewController *settingsVC = [[YTSettingsViewController alloc] init];
id<YTResponder> parentResponder = [settingsVC _parentResponder];
[parentResponder triggerSettingsMenu];
UIViewController *rootVC = [UIApplication sharedApplication].keyWindow.rootViewController;
UINavigationController *navController = (UINavigationController *)rootVC;
[navController pushViewController:settingsVC animated:YES];
}
%end