Hide skip button when developer enables automatic downloads too

This commit is contained in:
Zorg committed 2021-01-23 18:15:58 -08:00
1 parent 0a35f9d807
commit c3ce4f624b
1 file changed
+8 -4
+8 -4
View File
@@ -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);