Alert fixes

This commit is contained in:
23 Aaron 2020-02-03 22:54:41 -05:00
parent 5807fc51d5
commit 9bc774ced9
3 changed files with 8 additions and 8 deletions

View file

@ -2,8 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>UIUserInterfaceStyle</key>
<string>Dark</string>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string> <string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
@ -43,6 +41,8 @@
<string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationPortraitUpsideDown</string>
</array> </array>
<key>UIUserInterfaceStyle</key>
<string>Dark</string>
<key>UIViewControllerBasedStatusBarAppearance</key> <key>UIViewControllerBasedStatusBarAppearance</key>
<false/> <false/>
</dict> </dict>

View file

@ -37,7 +37,7 @@ NSString *backupNameSelected;
NSString *newBackupName=[[createBackupAlert textFields][0] text]; NSString *newBackupName=[[createBackupAlert textFields][0] text];
if([[[createBackupAlert textFields][0] text] isEqual:@""]){ if([[[createBackupAlert textFields][0] text] isEqual:@""]){
NSLog(@"empty backup name!"); NSLog(@"Empty backup name!");
} }
else{ else{
NSLog(@"Backup name is good!"); NSLog(@"Backup name is good!");
@ -52,13 +52,13 @@ NSString *backupNameSelected;
UIAlertController * finishedCreateAlert= [UIAlertController UIAlertController * finishedCreateAlert= [UIAlertController
alertControllerWithTitle:@"Backup Creation Completed" alertControllerWithTitle:@"Backup Creation Completed"
message:@"The backup has been successfully created" message:@"The backup has been successfully created!"
preferredStyle:UIAlertControllerStyleAlert]; preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* ok = [UIAlertAction okActionWithHandler:^(UIAlertAction * action) UIAlertAction* ok = [UIAlertAction okActionWithHandler:^(UIAlertAction * action)
{ {
_backupFolderArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:@"/Library/FlashBack/Backups/" error:nil]; _backupFolderArray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:@"var/mobile/Library/FlashBack/Backups/" error:nil];
[self->selectedBackupPickerView reloadAllComponents]; [self->selectedBackupPickerView reloadAllComponents];
[finishedCreateAlert dismissViewControllerAnimated:YES completion:nil]; [finishedCreateAlert dismissViewControllerAnimated:YES completion:nil];
@ -170,7 +170,7 @@ NSString *backupNameSelected;
UIAlertController * finishedUpdateAlert= [UIAlertController UIAlertController * finishedUpdateAlert= [UIAlertController
alertControllerWithTitle:@"Backup Update Completed" alertControllerWithTitle:@"Backup Update Completed"
message:@"The backup has been successfully updated" message:@"The backup has been successfully updated!"
preferredStyle:UIAlertControllerStyleAlert]; preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* ok = [UIAlertAction okActionWithHandler:^(UIAlertAction * action) UIAlertAction* ok = [UIAlertAction okActionWithHandler:^(UIAlertAction * action)
@ -211,7 +211,7 @@ NSString *backupNameSelected;
UIAlertController * packageBackupAlert= [UIAlertController UIAlertController * packageBackupAlert= [UIAlertController
alertControllerWithTitle:@"Package Backup" alertControllerWithTitle:@"Package Backup"
message:@"This will package the selected backup to a DEB file." message:@"This will package the selected backup to a .deb file."
preferredStyle:UIAlertControllerStyleAlert]; preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* ok = [UIAlertAction okActionWithHandler:^(UIAlertAction * action) UIAlertAction* ok = [UIAlertAction okActionWithHandler:^(UIAlertAction * action)
@ -277,7 +277,7 @@ NSString *backupNameSelected;
UIAlertController * deleteFinishedAlert= [UIAlertController UIAlertController * deleteFinishedAlert= [UIAlertController
alertControllerWithTitle:@"Backup Deleted" alertControllerWithTitle:@"Backup Deleted"
message:@"The backup has been deleted successfully" message:@"The backup has been deleted successfully."
preferredStyle:UIAlertControllerStyleAlert]; preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* okey = [UIAlertAction okActionWithHandler:^(UIAlertAction * action) UIAlertAction* okey = [UIAlertAction okActionWithHandler:^(UIAlertAction * action)