Skip to content

Commit

Permalink
Fixes sparkle-project#174: Bug: sparkle:shortVersionString ignored fo…
Browse files Browse the repository at this point in the history
…r non-enclosure items
  • Loading branch information
andymatuschak committed May 9, 2012
1 parent 97c71ef commit 803925f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SUAppcastItem.m
Expand Up @@ -212,6 +212,9 @@ - (BOOL)isDeltaUpdate
[self setMinimumSystemVersion: [dict objectForKey:@"sparkle:minimumSystemVersion"]];

NSString *shortVersionString = [enclosure objectForKey:@"sparkle:shortVersionString"];
if (nil == shortVersionString)
shortVersionString = [dict objectForKey:@"sparkle:shortVersionString"]; // fall back on the <item>

if (shortVersionString)
[self setDisplayVersionString: shortVersionString];
else
Expand Down

0 comments on commit 803925f

Please sign in to comment.