Add temporary hack for bringing up authorization dialog right away if needed later

This commit is contained in:
Zorg committed 2016-04-01 14:11:30 -04:00
1 parent 941ae6481f
commit 32edf6cc5d
1 file changed
+4 -2
+4 -2
View File
@@ -223,11 +223,13 @@
return YES;
}
- (BOOL)performSecondStageAllowingUI:(BOOL)allowsUI error:(NSError *__autoreleasing *)__unused error
- (BOOL)performSecondStageAllowingUI:(BOOL)allowsUI error:(NSError *__autoreleasing *)error
{
self.fileManager = [SUFileManager fileManagerAllowingAuthorization:allowsUI];
return YES;
// Temporary hack for bringing authorization prompt right away if we need it
// Ideally, bringing up the authorization prompt may be done before extraction occurs
return [self.fileManager updateModificationAndAccessTimeOfItemAtURL:self.host.bundle.bundleURL error:error];
}
- (BOOL)performThirdStage:(NSError * __autoreleasing *)error