mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 16:02:00 +00:00
Update uYouPlusSettings.xm
This commit is contained in:
parent
275f583fa5
commit
28fe84d940
1 changed files with 2 additions and 1 deletions
|
|
@ -208,7 +208,6 @@ extern NSBundle *uYouPlusBundle();
|
||||||
[settingsString writeToURL:tempFileURL atomically:YES encoding:NSUTF8StringEncoding error:nil];
|
[settingsString writeToURL:tempFileURL atomically:YES encoding:NSUTF8StringEncoding error:nil];
|
||||||
UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithURL:tempFileURL inMode:UIDocumentPickerModeExportToService];
|
UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithURL:tempFileURL inMode:UIDocumentPickerModeExportToService];
|
||||||
documentPicker.allowsMultipleSelection = NO;
|
documentPicker.allowsMultipleSelection = NO;
|
||||||
documentPicker.delegate = self;
|
|
||||||
[settingsViewController presentViewController:documentPicker animated:YES completion:nil];
|
[settingsViewController presentViewController:documentPicker animated:YES completion:nil];
|
||||||
} else {
|
} else {
|
||||||
// Copy Settings functionality (DEFAULT - Copies to Clipboard)
|
// Copy Settings functionality (DEFAULT - Copies to Clipboard)
|
||||||
|
|
@ -1657,9 +1656,11 @@ NSString *cacheDescription = [NSString stringWithFormat:@"%@", GetCacheSize()];
|
||||||
message:@"Failed to import settings. Reverted to previous settings."
|
message:@"Failed to import settings. Reverted to previous settings."
|
||||||
preferredStyle:UIAlertControllerStyleAlert];
|
preferredStyle:UIAlertControllerStyleAlert];
|
||||||
[errorAlert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
[errorAlert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
|
||||||
|
YTSettingsViewController *settingsViewController = [self valueForKey:@"_settingsViewControllerDelegate"];
|
||||||
[settingsViewController presentViewController:errorAlert animated:YES completion:nil];
|
[settingsViewController presentViewController:errorAlert animated:YES completion:nil];
|
||||||
}
|
}
|
||||||
}]];
|
}]];
|
||||||
|
YTSettingsViewController *settingsViewController = [self valueForKey:@"_settingsViewControllerDelegate"];
|
||||||
[settingsViewController presentViewController:confirmImportAlert animated:YES completion:nil];
|
[settingsViewController presentViewController:confirmImportAlert animated:YES completion:nil];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue