From 6634ed7d692517ff3f8cf3f5f257432a844dbfa9 Mon Sep 17 00:00:00 2001 From: Bi11 Date: Sat, 31 Dec 2016 23:37:53 +0800 Subject: [PATCH] Hide automatic updates checkbox for information only updates --- Sparkle/SUUpdateAlert.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index aa4da80e..efda7f45 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -171,7 +171,8 @@ - (BOOL)allowsAutomaticUpdates { - return [SUSystemUpdateInfo systemAllowsAutomaticUpdatesForHost:self.host]; + return [SUSystemUpdateInfo systemAllowsAutomaticUpdatesForHost:self.host] + && !self.updateItem.isInformationOnlyUpdate; } - (void)windowDidLoad