Automatically download update and wait until restart to install

This commit is contained in:
Marcus Osobase authored and Marcus Ososbase committed 2017-06-22 17:22:49 -04:00
1 parent 17c51da8af
commit cc75f340e8
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -46,6 +46,14 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2
- (void)showUpdateAlert
{
id<SUUpdaterDelegate> updaterDelegate = [self.updater delegate];
if ([updaterDelegate suppressSparkleUI])
{
[self automaticUpdateAlertFinishedWithChoice:SUInstallLaterChoice];
return;
}
self.interruptible = NO;
[self invalidateShowUpdateAlertTimer];
+1 -1
View File
@@ -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.