Update ViewController.m
This commit is contained in:
parent
ac09823a09
commit
6db1a5aeee
1 changed files with 8 additions and 19 deletions
|
@ -323,35 +323,24 @@ int itFuckingCounts = 0;
|
|||
handler:^(UIAlertAction * action)
|
||||
{
|
||||
|
||||
//RUN RESTORE SCRIPT
|
||||
UIAlertController * packageBackupWait= [UIAlertController
|
||||
alertControllerWithTitle:@"Backup DEB"
|
||||
message:@"The backup is being created. Please Wait. This dialogue will will be dismissed when finished. The DEB can be found in [/User/Documents/FlashBackDEBs]"
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
[packageBackupAlert dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
[self presentViewController:packageBackupWait animated:YES completion:nil];
|
||||
|
||||
|
||||
NSTask *packageTask = [[NSTask alloc] init];
|
||||
[packageTask setLaunchPath:@"/bin/bash"];
|
||||
[packageTask setArguments:@[ @"FBPackage", backupNameSelected]];
|
||||
[packageTask launch];
|
||||
[packageTask waitUntilExit];
|
||||
|
||||
UIAlertController * finishedPackageAlert= [UIAlertController
|
||||
alertControllerWithTitle:@"Packaging Complete"
|
||||
message:@"The package can be found in [/User/Documents/FlashBackDEBs/]."
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
|
||||
|
||||
UIAlertAction* ok = [UIAlertAction
|
||||
actionWithTitle:@"ok"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction * action)
|
||||
{
|
||||
[finishedPackageAlert dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}];
|
||||
|
||||
[finishedPackageAlert addAction:ok];
|
||||
|
||||
[self presentViewController:finishedPackageAlert animated:YES completion:nil];
|
||||
[packageBackupWait dismissViewControllerAnimated:YES completion:nil];
|
||||
|
||||
}];
|
||||
UIAlertAction* cancel = [UIAlertAction
|
||||
|
|
Reference in a new issue