Do not say no valid update could be found if there were no items

There may not be any applicable items due to sparkle:channels now.
This commit is contained in:
Zorg committed 2021-06-26 23:49:45 -07:00
1 parent 5fba1fe046
commit 267f2b82b1
3 files changed
+6 -12

No files matched your search

-3
View File
@@ -14,9 +14,6 @@
"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@ is currently the newest version available.\n(You are currently running version %3$@.)";
/* An appcast feed error when checking for updates and no appcast items are retrieved */
"No valid update information could be loaded." = "No valid update information could be loaded.";
"An error occurred while running the updater. Please try again later." = "An error occurred while running the updater. Please try again later.";
"An error occurred while starting the installer. Please try again later." = "An error occurred while starting the installer. Please try again later.";
+6 -6
View File
@@ -203,17 +203,17 @@
}
break;
}
recoveryOption = @"OK";
} else {
// When no updates are found in the appcast, or latest appcast item info
// was not provided (i.e, for a background update check)
// In the case no info was provided for a background check, the error isn't shown anywhere
localizedDescription = SULocalizedString(@"Update Error!", nil);
recoverySuggestion = SULocalizedString(@"No valid update information could be loaded.", nil);
recoveryOption = SULocalizedString(@"Cancel Update", nil);
// 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.
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]];
}
recoveryOption = SULocalizedString(@"OK", nil);
NSError *notFoundError =
[NSError
errorWithDomain:SUSparkleErrorDomain
-3
View File
@@ -14,9 +14,6 @@
"%@ %@ is currently the newest version available.\n(You are currently running version %@.)" = "%1$@ %2$@は現在入手できる最新バージョンです。\n(現在使用中のバージョンは%3$@です。)";
/* An appcast feed error when checking for updates and no appcast items are retrieved */
"No valid update information could be loaded." = "有効なアップデート情報が取得できませんでした。";
"An error occurred while running the updater. Please try again later." = "アップデータを実行中にエラーが発生しました。あとでやり直してください。";
"An error occurred while starting the installer. Please try again later." = "インストーラを始動中にエラーが発生しました。あとでやり直してください。";