diff --git a/Sparkle/SPUUIBasedUpdateDriver.m b/Sparkle/SPUUIBasedUpdateDriver.m index 435a7d9e..a0e8841a 100644 --- a/Sparkle/SPUUIBasedUpdateDriver.m +++ b/Sparkle/SPUUIBasedUpdateDriver.m @@ -180,7 +180,7 @@ stage = SPUUserUpdateStageNotDownloaded; } - SPUUserUpdateState *state = [[SPUUserUpdateState alloc] initWithStage:stage userInitiated:self.userInitiated majorUpdate:preventsAutoupdate]; + SPUUserUpdateState *state = [[SPUUserUpdateState alloc] initWithStage:stage userInitiated:self.userInitiated majorUpgrade:preventsAutoupdate]; [self.userDriver showUpdateFoundWithAppcastItem:updateItem state:state reply:^(SPUUserUpdateChoice userChoice) { dispatch_async(dispatch_get_main_queue(), ^{ diff --git a/Sparkle/SPUUserDriver.h b/Sparkle/SPUUserDriver.h index a31eb2f8..684cf12d 100644 --- a/Sparkle/SPUUserDriver.h +++ b/Sparkle/SPUUserDriver.h @@ -68,7 +68,7 @@ SU_EXPORT @protocol SPUUserDriver * SPUUserUpdateStateInformational - Update is only informational and has no download. You can direct the user to the infoURL property of the appcastItem in their web browser. Use this to check if an update is informational, instead of using the informationOnlyUpdate property of the appcast item. * * state.userInitiated indicates if the update was initiated by the user or if it was automatically scheduled in the background. - * state.majorUpdate indicates if the update is a major or paid upgrade. + * state.majorUpgrade indicates if the update is a major or paid upgrade. * * Additionally, you may want to check the criticalUpdate property of the appcastItem to let the user know if the update is critical. * @@ -81,7 +81,7 @@ SU_EXPORT @protocol SPUUserDriver * If the state.stage is SPUUserUpdateStateInstalling, the installing update is also preserved after dismissing. In this state however, the update will also still be installed after the application is terminated. * * A reply of SPUUserUpdateChoiceSkip skips this particular version and won't notify the user again, unless they initiate an update check themselves. - * If state.majorUpdate is YES, the major update and any minor updates to that major release are skipped. + * If state.majorUpgrade is YES, the major update and any minor updates to that major release are skipped. * If the state.stage is SPUUserUpdateStateInstalling, the installation is also canceled when the update is skipped. */ - (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem state:(SPUUserUpdateState *)state reply:(void (^)(SPUUserUpdateChoice))reply; diff --git a/Sparkle/SPUUserUpdateState+Private.h b/Sparkle/SPUUserUpdateState+Private.h index 052d10ce..90e732c4 100644 --- a/Sparkle/SPUUserUpdateState+Private.h +++ b/Sparkle/SPUUserUpdateState+Private.h @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN @interface SPUUserUpdateState (Private) -- (instancetype)initWithStage:(SPUUserUpdateStage)stage userInitiated:(BOOL)userInitiated majorUpdate:(BOOL)majorUpdate; +- (instancetype)initWithStage:(SPUUserUpdateStage)stage userInitiated:(BOOL)userInitiated majorUpgrade:(BOOL)majorUpgrade; @end diff --git a/Sparkle/SPUUserUpdateState.h b/Sparkle/SPUUserUpdateState.h index 7f2b0040..b1be0c91 100644 --- a/Sparkle/SPUUserUpdateState.h +++ b/Sparkle/SPUUserUpdateState.h @@ -39,7 +39,7 @@ SU_EXPORT @interface SPUUserUpdateState : NSObject @property (nonatomic, readonly) SPUUserUpdateStage stage; @property (nonatomic, readonly) BOOL userInitiated; -@property (nonatomic, readonly) BOOL majorUpdate; +@property (nonatomic, readonly) BOOL majorUpgrade; @end diff --git a/Sparkle/SPUUserUpdateState.m b/Sparkle/SPUUserUpdateState.m index a9f7d4cc..6cef2526 100644 --- a/Sparkle/SPUUserUpdateState.m +++ b/Sparkle/SPUUserUpdateState.m @@ -16,15 +16,15 @@ @synthesize stage = _stage; @synthesize userInitiated = _userInitiated; -@synthesize majorUpdate = _majorUpdate; +@synthesize majorUpgrade = _majorUpgrade; -- (instancetype)initWithStage:(SPUUserUpdateStage)stage userInitiated:(BOOL)userInitiated majorUpdate:(BOOL)majorUpdate +- (instancetype)initWithStage:(SPUUserUpdateStage)stage userInitiated:(BOOL)userInitiated majorUpgrade:(BOOL)majorUpgrade { self = [super init]; if (self != nil) { _stage = stage; _userInitiated = userInitiated; - _majorUpdate = majorUpdate; + _majorUpgrade = majorUpgrade; } return self; }