Fix code for disabling Auto RAM unjailbroken

This commit is contained in:
Eilionoir Tunnicliff committed 2022-09-11 21:28:32 -04:00
1 parent 90380add37
commit f7eb23b204
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ extern NSMutableDictionary *prefDict;
[jbAlert addAction:ok];
}
if(!getenv("POJAV_DETECTEDJB") && [getPreference(@"ram_unjb_warn") boolValue] == YES && [getPreference(@"ram_unjb_enable") boolValue] == YES) {
if(!getenv("POJAV_DETECTEDJB") && [getPreference(@"ram_unjb_warn") boolValue] == YES && [getPreference(@"auto_ram") boolValue] == NO) {
UIAlertController *ramalert = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"login.warn.title.ram_unjb", nil) message:NSLocalizedString(@"login.warn.message.ram_unjb", nil) preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:NSLocalizedString(@"OK", nil) style:UIAlertActionStyleCancel handler:nil];
[self presentViewController:ramalert animated:YES completion:nil];