diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 6338956d..eddfa5ad 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -38,6 +38,7 @@ @property (weak) IBOutlet WebView *releaseNotesView; @property (weak) IBOutlet NSView *releaseNotesContainerView; @property (weak) IBOutlet NSTextField *descriptionField; +@property (weak) IBOutlet NSButton *automaticallyInstallUpdatesButton; @property (weak) IBOutlet NSButton *installButton; @property (weak) IBOutlet NSButton *skipButton; @property (weak) IBOutlet NSButton *laterButton; @@ -58,6 +59,7 @@ @synthesize releaseNotesView; @synthesize releaseNotesContainerView; @synthesize descriptionField; +@synthesize automaticallyInstallUpdatesButton; @synthesize installButton; @synthesize skipButton; @synthesize laterButton; @@ -194,11 +196,13 @@ if (showReleaseNotes) { [self displayReleaseNotes]; } else { + NSLayoutConstraint *automaticallyInstallUpdatesButtonToDescriptionFieldConstraint = [NSLayoutConstraint constraintWithItem:self.automaticallyInstallUpdatesButton attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.descriptionField attribute:NSLayoutAttributeBottom multiplier:1.0 constant:8.0]; + + [self.window.contentView addConstraint:automaticallyInstallUpdatesButtonToDescriptionFieldConstraint]; + [self.releaseNotesContainerView removeFromSuperview]; } - [self.window.contentView setNeedsLayout:YES]; // Prod autolayout to place everything - [self.window center]; } diff --git a/Sparkle/en.lproj/SUUpdateAlert.xib b/Sparkle/en.lproj/SUUpdateAlert.xib index c1178be9..31fb7278 100644 --- a/Sparkle/en.lproj/SUUpdateAlert.xib +++ b/Sparkle/en.lproj/SUUpdateAlert.xib @@ -1,16 +1,17 @@ - + - + - - + + + @@ -21,12 +22,12 @@ - + - + @@ -75,16 +76,16 @@ - + - + - + - + @@ -117,7 +118,7 @@ - + @@ -161,7 +162,7 @@ Gw