Added another option

This option is required in order for the version spoofer to work 😅
This commit is contained in:
arichorn 2023-07-09 00:00:24 -05:00 committed by GitHub
parent a4e3978182
commit e15d2d1d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -875,7 +875,7 @@ extern NSBundle *uYouPlusBundle();
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"ENABLE_FLEX")
titleDescription:LOC(@"ENABLE_FLEX_DESC")
accessibilityIdentifier:nil
@ -884,8 +884,17 @@ extern NSBundle *uYouPlusBundle();
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"flex_enabled"];
return YES;
}
settingItemId:0]
];
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Enable App Version Spoofer")
titleDescription:LOC(@"APP_VERSION_SPOOFER_DESC")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"enableVersionSpoofer_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"enableVersionSpoofer_enabled"];
return YES;
}
settingItemId:0], versionSpooferSection];
YTSettingsPickerViewController *picker = [[%c(YTSettingsPickerViewController) alloc] initWithNavTitle:LOC(@"MISCELLANEOUS") pickerSectionTitle:nil rows:rows selectedItemIndex:NSNotFound parentResponder:[self parentResponder]];
[settingsViewController pushViewController:picker];
return YES;