From 4f47fb02db4d2572dbd8e9822f7a985ee80bb556 Mon Sep 17 00:00:00 2001 From: Trevor DeVore Date: Fri, 28 Aug 2020 20:30:22 -0500 Subject: [PATCH] fix: read SUAutomaticallyUpdate from Info.plist `SUAutomaticallyUpdate` will now be read from `Info.plist` if it has not been set in `NSUserDefaults`. This brings the behavior into line with the documentation. --- Sparkle/SUUpdater.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 9ba5ec15..5ad7f231 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -482,7 +482,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults } // Otherwise, automatically downloading updates is allowed. Does the user want it? - return [self.host boolForUserDefaultsKey:SUAutomaticallyUpdateKey]; + return [self.host boolForKey:SUAutomaticallyUpdateKey]; } - (void)setFeedURL:(NSURL *)feedURL