mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Informational only updates shouldn't be presented as downloadable
This commit is contained in:
1 parent
0bb3ab51b3
commit
ad43a6d0c9
1 file changed
+5
-1
Vendored
+5
-1
@@ -16,6 +16,7 @@
|
||||
#import "SUErrors.h"
|
||||
#import "SPUURLDownload.h"
|
||||
#import "SPUDownloadData.h"
|
||||
#import "SPUDownloadedUpdate.h"
|
||||
|
||||
#ifdef _APPKITDEFINES_H
|
||||
#error This is a "core" class and should NOT import AppKit
|
||||
@@ -90,7 +91,10 @@
|
||||
|
||||
- (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock
|
||||
{
|
||||
self.resumingDownloadedUpdate = YES;
|
||||
// Informational downloads shouldn't be presented as updates to be downloaded
|
||||
if (!downloadedUpdate.updateItem.isInformationOnlyUpdate) {
|
||||
self.resumingDownloadedUpdate = YES;
|
||||
}
|
||||
[self.coreDriver resumeDownloadedUpdate:downloadedUpdate completion:completionBlock];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user