From 7c7f1e4955c09b50e1ba3d7e1ed041fb6cd4a482 Mon Sep 17 00:00:00 2001 From: Antonin Hildebrand Date: Tue, 4 Mar 2014 20:45:54 -0500 Subject: [PATCH] a hacky way how to remove "Allow Automatic Updates" feature --- SUUpdateAlert.m | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/SUUpdateAlert.m b/SUUpdateAlert.m index 2ef5158b..81aa4ec3 100644 --- a/SUUpdateAlert.m +++ b/SUUpdateAlert.m @@ -140,15 +140,17 @@ - (BOOL)allowsAutomaticUpdates { - BOOL allowAutoUpdates = YES; // Defaults to YES. - if( [host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] ) - allowAutoUpdates = [host boolForInfoDictionaryKey: SUAllowsAutomaticUpdatesKey]; - - // UK 2007-08-31: Give delegate a chance to modify this choice: - if( delegate && [delegate respondsToSelector: @selector(updateAlert:shouldAllowAutoUpdate:)] ) - [delegate updateAlert: self shouldAllowAutoUpdate: &allowAutoUpdates]; - - return allowAutoUpdates; +// BOOL allowAutoUpdates = YES; // Defaults to YES. +// if( [host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] ) +// allowAutoUpdates = [host boolForInfoDictionaryKey: SUAllowsAutomaticUpdatesKey]; +// +// // UK 2007-08-31: Give delegate a chance to modify this choice: +// if( delegate && [delegate respondsToSelector: @selector(updateAlert:shouldAllowAutoUpdate:)] ) +// [delegate updateAlert: self shouldAllowAutoUpdate: &allowAutoUpdates]; +// +// return allowAutoUpdates; + + return NO; // HACK: darwin } - (void)awakeFromNib