mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Fix initializing recoveryOption
This commit is contained in:
1 parent
c329319b0c
commit
e5f1bd5e02
1 file changed
+4
-4
Vendored
+4
-4
@@ -169,7 +169,6 @@
|
||||
|
||||
NSString *localizedDescription;
|
||||
NSString *recoverySuggestion;
|
||||
NSString *recoveryOption;
|
||||
|
||||
SPUNoUpdateFoundReason reason;
|
||||
if (latestAppcastItem != nil) {
|
||||
@@ -219,12 +218,15 @@
|
||||
// was not provided (i.e, for a background update check)
|
||||
// We will need to assume the user is up to date if the feed doen't have any applicable update items
|
||||
// There could be update items on channels the updater is not subscribed to for example. But we can't tell the user about them.
|
||||
// There could also only be update items available for other platforms or none at all.
|
||||
localizedDescription = SULocalizedString(@"You're up-to-date!", "Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates.");
|
||||
recoverySuggestion = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is currently the newest version available.", nil), [self.host name], [self.host displayVersion]];
|
||||
|
||||
reason = SPUNoUpdateFoundReasonUnknown;
|
||||
reason = SPUNoUpdateFoundReasonOnLatestVersion;
|
||||
}
|
||||
|
||||
NSString *recoveryOption = SULocalizedString(@"OK", nil);
|
||||
|
||||
NSMutableDictionary *userInfo =
|
||||
[NSMutableDictionary dictionaryWithDictionary:@{
|
||||
NSLocalizedDescriptionKey: localizedDescription,
|
||||
@@ -237,8 +239,6 @@
|
||||
userInfo[SPULatestAppcastItemFoundKey] = latestAppcastItem;
|
||||
}
|
||||
|
||||
recoveryOption = SULocalizedString(@"OK", nil);
|
||||
|
||||
NSError *notFoundError =
|
||||
[NSError
|
||||
errorWithDomain:SUSparkleErrorDomain
|
||||
|
||||
Reference in new issue
Block a user