mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Rename did finish downloaading callbacks to did start extracting
This commit is contained in:
1 parent
48938d0e78
commit
5c0ee2d74a
8 files changed
+12
-12
No files matched your search
Vendored
+1
-1
@@ -35,7 +35,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
- (void)downloadDriverDidReceiveDataOfLength:(NSUInteger)length;
|
||||
|
||||
- (void)coreDriverDidFinishDownloadingUpdate;
|
||||
- (void)coreDriverDidStartExtractingUpdate;
|
||||
|
||||
- (void)installerDidStartInstalling;
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -170,8 +170,8 @@
|
||||
- (void)extractUpdate:(SUDownloadedUpdate *)downloadedUpdate
|
||||
{
|
||||
// Now we have to extract the downloaded archive.
|
||||
if ([self.delegate respondsToSelector:@selector(coreDriverDidFinishDownloadingUpdate)]) {
|
||||
[self.delegate coreDriverDidFinishDownloadingUpdate];
|
||||
if ([self.delegate respondsToSelector:@selector(coreDriverDidStartExtractingUpdate)]) {
|
||||
[self.delegate coreDriverDidStartExtractingUpdate];
|
||||
}
|
||||
|
||||
[self.installerDriver extractDownloadedUpdate:downloadedUpdate silently:self.silentInstall completion:^(NSError * _Nullable error) {
|
||||
|
||||
Vendored
+1
-1
@@ -366,7 +366,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
- (void)showDownloadFinishedAndStartedExtractingUpdate
|
||||
- (void)showDownloadDidStartExtractingUpdate
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self.coreComponent completeDownloadStatus];
|
||||
|
||||
Vendored
+2
-2
@@ -160,9 +160,9 @@
|
||||
[self.userDriver showDownloadDidReceiveDataOfLength:length];
|
||||
}
|
||||
|
||||
- (void)coreDriverDidFinishDownloadingUpdate
|
||||
- (void)coreDriverDidStartExtractingUpdate
|
||||
{
|
||||
[self.userDriver showDownloadFinishedAndStartedExtractingUpdate];
|
||||
[self.userDriver showDownloadDidStartExtractingUpdate];
|
||||
}
|
||||
|
||||
- (void)installerDidStartInstalling
|
||||
|
||||
Vendored
+3
-3
@@ -200,9 +200,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
* Let the user know that downloading the new update started.
|
||||
*
|
||||
* @param downloadUpdateStatusCompletion A reply of SUDownloadUpdateCancelled can be used to cancel
|
||||
* the download at any point before -showDownloadFinishedAndStartedExtractingUpdate is invoked.
|
||||
* the download at any point before -showDownloadDidStartExtractingUpdate is invoked.
|
||||
* A reply of SUDownloadUpdateDone signifies that the download is done, which should not be invoked until
|
||||
* -showDownloadFinishedAndStartedExtractingUpdate
|
||||
* -showDownloadDidStartExtractingUpdate
|
||||
*
|
||||
* This can be called from any thread
|
||||
*/
|
||||
@@ -235,7 +235,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
*
|
||||
* This can be called from any thread
|
||||
*/
|
||||
- (void)showDownloadFinishedAndStartedExtractingUpdate;
|
||||
- (void)showDownloadDidStartExtractingUpdate;
|
||||
|
||||
/*!
|
||||
* Show the user that the update is extracting with progress
|
||||
|
||||
@@ -304,7 +304,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
- (void)showDownloadFinishedAndStartedExtractingUpdate
|
||||
- (void)showDownloadDidStartExtractingUpdate
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self.coreComponent completeDownloadStatus];
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
- (void)showDownloadDidReceiveDataOfLength:(NSUInteger)__unused length {}
|
||||
|
||||
- (void)showDownloadFinishedAndStartedExtractingUpdate {}
|
||||
- (void)showDownloadDidStartExtractingUpdate {}
|
||||
|
||||
- (void)showExtractionReceivedProgress:(double)__unused progress {}
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
- (void)showDownloadFinishedAndStartedExtractingUpdate
|
||||
- (void)showDownloadDidStartExtractingUpdate
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self.coreComponent completeDownloadStatus];
|
||||
|
||||
Reference in new issue
Block a user