mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Add temporary hack for bringing up authorization dialog right away if needed later
This commit is contained in:
1 parent
941ae6481f
commit
32edf6cc5d
1 file changed
+4
-2
Vendored
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user