From f977a92e4c6250d0239bbc88dff15f97204ae138 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 21 Feb 2021 08:33:32 -0800 Subject: [PATCH] Revert logic that prevented users from disabling automatic downloads In 2.x, updates can be downloaded automatically and presented later even if they can't be installed automatically without user intervention. Users need to in control and be able to disable automatic downloads regardless of developer's Info.plist intention. --- Sparkle/SUUpdateAlert.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index ca90549f..76fa5705 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -392,10 +392,7 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE // When we show release notes, it looks ugly if the install buttons are not closer to the release notes view // However when we don't show release notes, it looks ugly if the install buttons are too close to the description field. Shrugs. - // Automatic downloads is enabled by developer if they set SUAutomaticallyUpdateKey in Info.plist, - // rather than the user toggling the setting - BOOL automaticDownloadsEnabledByDeveloper = [self.host boolForInfoDictionaryKey:SUAutomaticallyUpdateKey]; - if (!self.allowsAutomaticUpdates || automaticDownloadsEnabledByDeveloper) { + if (!self.allowsAutomaticUpdates) { if (showReleaseNotes) { // Fix constraints so that buttons aren't far away from web view when we hide the automatic updates check box NSLayoutConstraint *skipButtonToReleaseNotesContainerConstraint = [NSLayoutConstraint constraintWithItem:self.skipButton attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.releaseNotesContainerView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:12.0];