Additional UI nicities.

Fixed bug in sparkle minimum version check.
CQTexperiment
vspader 2008-01-24 02:17:57 +00:00
parent 2b1c305841
commit bb7de6897e
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -276,7 +276,7 @@
// Override this to change the new version comparison logic! // Override this to change the new version comparison logic!
- (BOOL)newVersionAvailable - (BOOL)newVersionAvailable
{ {
BOOL canRunOnCurrentSystem = SUStandardVersionComparison([updateItem minimumSystemVersion], [self systemVersionString]); BOOL canRunOnCurrentSystem = (SUStandardVersionComparison([updateItem minimumSystemVersion], [self systemVersionString]) != NSOrderedAscending);
return (canRunOnCurrentSystem && (SUStandardVersionComparison([updateItem fileVersion], SUHostAppVersion()) == NSOrderedAscending)); return (canRunOnCurrentSystem && (SUStandardVersionComparison([updateItem fileVersion], SUHostAppVersion()) == NSOrderedAscending));
// Want straight-up string comparison like Sparkle 1.0b3 and earlier? Uncomment the line below and comment the one above. // Want straight-up string comparison like Sparkle 1.0b3 and earlier? Uncomment the line below and comment the one above.
// return ![SUHostAppVersion() isEqualToString:[updateItem fileVersion]]; // return ![SUHostAppVersion() isEqualToString:[updateItem fileVersion]];