From 744d67c6edcd5a7e9061fb59c758c1baab4a4ff7 Mon Sep 17 00:00:00 2001 From: Marcus Ososbase Date: Mon, 31 Oct 2016 15:12:08 -0400 Subject: [PATCH] Patched loophole that allowed Sparkle to present UI even though it was suppressed Added some log statements for future debugging if necessary --- Sparkle/SUAutomaticUpdateDriver.m | 1 + Sparkle/SUUpdater.h | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m index 97860803..8b9e2810 100644 --- a/Sparkle/SUAutomaticUpdateDriver.m +++ b/Sparkle/SUAutomaticUpdateDriver.m @@ -52,6 +52,7 @@ static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 2 [self automaticUpdateAlertFinishedWithChoice:SUInstallLaterChoice]; return; } +// NSLog(@"[Sparkle showUpdateAlert]"); self.interruptible = NO; [self invalidateShowUpdateAlertTimer]; diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index f669ee5b..bee72acc 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -60,9 +60,13 @@ SU_EXPORT @interface SUUpdater : NSObject */ - (instancetype)initForBundle:(NSBundle *)bundle; - +/*! + Suppress sparkle UI. This should prevent any Sparkle UI from popping up. + Updates should be handled by the host. + */ -(BOOL)suppressSparkleUI; + /*! Suppress sparkle UI. This should prevent any Sparkle UI from popping up. Updates should be handled by the host.