From a85db747f13d222d8889e775b2a1c6eb14bc5078 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 23 Jan 2021 19:37:29 -0800 Subject: [PATCH] Add more comments --- Sparkle/SUUpdateAlert.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index f9440a04..9db1a078 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -347,6 +347,8 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE // (Install Later would be harmfully incorrect if this update cannot be automatically installed) // And this is really not the place to do comparison/version checks. // Also make sure to check that the system and developer allows us to automatically update. + // This logic is not very sound and gets worse in 2.x where apps can be sandboxed. We may need to revisit this + // and also decide if we really need this button in the first place. if ([self.host boolForKey:SUAutomaticallyUpdateKey] && allowsAutomaticUpdates && self.updateItem.minimumAutoupdateVersion.length == 0) { [self.laterButton setTitle:SULocalizedString(@"Install Later", @"Alternate title for 'Remind Me Later' button when automatic updates are enabled")]; }