Don't allow setting automatic updates when update checks are disabled

This commit is contained in:
Zorg committed 2021-06-01 10:19:44 -07:00
1 parent 433e1bf3de
commit 0063fbda17
1 file changed
+1 -1
+1 -1
View File
@@ -92,7 +92,7 @@ static NSString *const SUUpdateAlertTouchBarIndentifier = @"" SPARKLE_BUNDLE_IDE
_completionBlock = [block copy];
SPUUpdaterSettings *updaterSettings = [[SPUUpdaterSettings alloc] initWithHostBundle:host.bundle];
_allowsAutomaticUpdates = updaterSettings.allowsAutomaticUpdates && state.stage != SPUUserUpdateStageInformational;
_allowsAutomaticUpdates = updaterSettings.allowsAutomaticUpdates && updaterSettings.automaticallyChecksForUpdates && state.stage != SPUUserUpdateStageInformational;
[self setShouldCascadeWindows:NO];
}
return self;