From 59fbd37bb1009c73ae6ed31cbb4ef812277743f2 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 9 May 2021 23:03:05 -0700 Subject: [PATCH] Re-title skip button when update is a major one --- Sparkle/Base.lproj/Sparkle.strings | 3 +++ Sparkle/SUUpdateAlert.m | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Sparkle/Base.lproj/Sparkle.strings b/Sparkle/Base.lproj/Sparkle.strings index 71b1c504..4acaed45 100644 --- a/Sparkle/Base.lproj/Sparkle.strings +++ b/Sparkle/Base.lproj/Sparkle.strings @@ -98,6 +98,9 @@ without a download but with a URL. */ "Learn More..." = "Learn More…"; +/* When the update to download or install is a major (usually paid) one */ +"Skip Major Upgrade" = "Skip Major Upgrade"; + /* the unit for megabytes */ "MB" = "MB"; diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index c9d5581b..1d94d12b 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -369,6 +369,10 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE // We should be explicit that the update will be installed on quit self.laterButton.title = SULocalizedString(@"Install on Quit", @"Alternate title for 'Remind Me Later' button when downloaded updates can be resumed"); } + + if (self.state.majorUpgrade) { + self.skipButton.title = SULocalizedString(@"Skip Major Upgrade", nil); + } if ([self.updateItem isCriticalUpdate]) { self.skipButton.hidden = YES;