mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
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:
1 parent
68e2cd67d1
commit
ec8fcbc02f
1 file changed
+9
-1
+9
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user