Update uYouPlus.xm

This commit is contained in:
arichornlover 2024-06-26 00:01:18 -05:00 committed by GitHub
parent 93c73d6c73
commit dd258d092e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,11 +102,8 @@ NSBundle *tweakBundle = uYouPlusBundle();
- (void)settingsAction {
YTSettingsViewController *settingsVC = [YTSettingsViewController new];
UIViewController *rootVC = [UIApplication sharedApplication].keyWindow.rootViewController;
UINavigationController *navController = (UINavigationController *)rootVC;
[navController pushViewController:settingsVC animated:YES];
}
- (id)settingsView {
return [YTSettingsViewController new];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:settingsVC];
[rootVC presentViewController:navController animated:YES completion:nil];
}
%end