If an update's display version is the same as the host's display version, the internal version number will be presented in parentheticals.

This commit is contained in:
Andy Matuschak committed 2008-08-17 13:51:55 -07:00
1 parent 68e2cd67d1
commit ec8fcbc02f
1 file changed
+9 -1
+9 -1
View File
@@ -150,7 +150,15 @@
- (NSString *)descriptionText
{
return [NSString stringWithFormat:SULocalizedString(@"%@ %@ is now available\u2014you have %@. Would you like to download it now?", nil), [host name], [updateItem displayVersionString], [host displayVersion]];
NSString *updateItemVersion = [updateItem displayVersionString];
NSString *hostVersion = [host displayVersion];
// Display more info if the version strings are the same; useful for betas.
if ([updateItemVersion isEqualToString:hostVersion])
{
updateItemVersion = [updateItemVersion stringByAppendingFormat:@" (%@)", [updateItem versionString]];
hostVersion = [hostVersion stringByAppendingFormat:@" (%@)", [host version]];
}
return [NSString stringWithFormat:SULocalizedString(@"%@ %@ is now available\u2014you have %@. Would you like to download it now?", nil), [host name], updateItemVersion, hostVersion];
}
- (void)webView:(WebView *)sender didFinishLoadForFrame:frame