From c3ce4f624b9c212ab3d50f6ca0fa9ce923e426ee Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 23 Jan 2021 18:15:58 -0800 Subject: [PATCH] Hide skip button when developer enables automatic downloads too --- Sparkle/SUUpdateAlert.m | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 0e0c7b86..bffd26d0 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -400,10 +400,14 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE [self.automaticallyInstallUpdatesButton removeFromSuperview]; } - if (automaticDownloadsEnabledByDeveloper && !showReleaseNotes) { - // Disable automatic install updates option if the developer wishes for it in Info.plist - // If we are showing release notes, this button will be hidden instead - self.automaticallyInstallUpdatesButton.enabled = NO; + if (automaticDownloadsEnabledByDeveloper) { + if (!showReleaseNotes) { + // Disable automatic install updates option if the developer wishes for it in Info.plist + // If we are showing release notes, this button will be hidden instead + self.automaticallyInstallUpdatesButton.enabled = NO; + } + + self.skipButton.hidden = YES; } BOOL startedInstalling = (self.resumableCompletionBlock != nil);