From f7eb23b2040d998aeea609b09fa98660c0ce0394 Mon Sep 17 00:00:00 2001 From: Eilionoir Tunnicliff Date: Sun, 11 Sep 2022 21:28:32 -0400 Subject: [PATCH] Fix code for disabling Auto RAM unjailbroken --- Natives/LoginViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Natives/LoginViewController.m b/Natives/LoginViewController.m index d249def9..1e53f8a4 100644 --- a/Natives/LoginViewController.m +++ b/Natives/LoginViewController.m @@ -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];