mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Add user driver docs & handling for showing informational updates
Perhaps I should add another method to the user driver for showing informational updates in the near future.
This commit is contained in:
1 parent
9d354e5606
commit
2001328032
2 files changed
+8
-3
No files matched your search
Vendored
+5
-1
@@ -131,7 +131,11 @@
|
||||
[self.host setObject:nil forUserDefaultsKey:SUSkippedVersionKey];
|
||||
switch (choice) {
|
||||
case SPUInstallUpdateChoice:
|
||||
[self.coreDriver downloadUpdateFromAppcastItem:updateItem];
|
||||
if (!updateItem.isInformationOnlyUpdate) {
|
||||
[self.coreDriver downloadUpdateFromAppcastItem:updateItem];
|
||||
} else {
|
||||
[self.delegate uiDriverIsRequestingAbortUpdateWithError:nil];
|
||||
}
|
||||
break;
|
||||
case SPUSkipThisVersionChoice:
|
||||
[self.host setObject:[updateItem versionString] forUserDefaultsKey:SUSkippedVersionKey];
|
||||
|
||||
Vendored
+3
-2
@@ -84,9 +84,9 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
|
||||
- (void)dismissUserInitiatedUpdateCheck;
|
||||
|
||||
/*!
|
||||
* Show the user a new update is found and can be downloaded & installed
|
||||
* Show the user a new update is found
|
||||
*
|
||||
* Let the user know a new downloadable update is found and ask them what they want to do.
|
||||
* Let the user know a new update is found and ask them what they want to do.
|
||||
*
|
||||
* @param appcastItem The Appcast Item containing information that reflects the new update
|
||||
*
|
||||
@@ -94,6 +94,7 @@ SU_EXPORT @protocol SPUUserDriver <NSObject>
|
||||
*
|
||||
* @param reply
|
||||
* A reply of SPUInstallUpdateChoice begins downloading and installing the new update.
|
||||
* Note if the update is only informational (appcastItem.isInformationOnlyUpdate), this response shouldn't be made.
|
||||
*
|
||||
* A reply of SPUInstallLaterChoice reminds the user later of the update, which can act as a "do nothing" option.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user