From f9dda210882126aa3cd151f1c2c7dedaf3d9cb4d Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Sun, 10 Aug 2008 17:32:40 -0700 Subject: [PATCH] Fixes 255399 Giving clients a chance to make multiple preference changes before they take effect. --- SUUpdater.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SUUpdater.m b/SUUpdater.m index 13084446..79eae45d 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -210,8 +210,7 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv // Allow a small delay, because perhaps the user or developer wants to change both preferences. This allows the developer to interpret a zero check interval as a sign to disable automatic checking. // Or we may get this from the developer and from our own KVO observation, this will effectively coalesce them. [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetUpdateCycle) object:nil]; - [self performSelector:@selector(resetUpdateCycle) withObject:nil afterDelay:15]; - [self resetUpdateCycle]; + [self performSelector:@selector(resetUpdateCycle) withObject:nil afterDelay:1]; } else {