mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Automatically download update and wait until restart to install
This commit is contained in:
1 parent
17c51da8af
commit
cc75f340e8
2 files changed
+9
-1
No files matched your search
Vendored
+8
@@ -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];
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user