From f5a90a089936c349c9f1be51e79939eb7855f650 Mon Sep 17 00:00:00 2001 From: alfiecg24 Date: Fri, 12 Jan 2024 17:02:57 +0000 Subject: [PATCH] Update alert message for encrypted binaries --- TrollStore/TSInstallationController.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/TrollStore/TSInstallationController.m b/TrollStore/TSInstallationController.m index 4caf61f..03c3e28 100644 --- a/TrollStore/TSInstallationController.m +++ b/TrollStore/TSInstallationController.m @@ -68,6 +68,16 @@ extern NSUserDefaults* trollStoreUserDefaults(void); [rebootNotification addAction:rebootAction]; [TSPresentationDelegate presentViewController:rebootNotification animated:YES completion:nil]; + } else if (ret == 184) { + // warning + UIAlertController* warningAlert = [UIAlertController alertControllerWithTitle:@"Warning" message:[error localizedDescription] preferredStyle:UIAlertControllerStyleAlert]; + UIAlertAction* closeAction = [UIAlertAction actionWithTitle:@"Close" style:UIAlertActionStyleCancel handler:^(UIAlertAction* action) + { + if(completionBlock) completionBlock(YES, nil); + }]; + [warningAlert addAction:closeAction]; + + [TSPresentationDelegate presentViewController:warningAlert animated:YES completion:nil]; } else { // unrecoverable error UIAlertController* errorAlert = [UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"Install Error %d", ret] message:[error localizedDescription] preferredStyle:UIAlertControllerStyleAlert];