diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m index c88aaeaf..e7d1b8b0 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SUAutomaticUpdateDriver.m @@ -46,6 +46,14 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 - (void)showUpdateAlert { + + id updaterDelegate = [self.updater delegate]; + if ([updaterDelegate suppressSparkleUI]) + { + [self automaticUpdateAlertFinishedWithChoice:SUInstallLaterChoice]; + return; + } + self.interruptible = NO; [self invalidateShowUpdateAlertTimer]; diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index 623c57d2..b26c6e67 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -61,7 +61,7 @@ SU_EXPORT @interface SUUpdater : NSObject - (instancetype)initForBundle:(NSBundle *)bundle; -@property (nonatomic) BOOL suppressUI; +-(BOOL)suppressSparkleUI; /*! Explicitly checks for updates and displays a progress dialog while doing so.