mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Hide skip button when developer enables automatic downloads too
This commit is contained in:
1 parent
0a35f9d807
commit
c3ce4f624b
1 file changed
+8
-4
Vendored
+8
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user