From c2745f5944928f9d076fc53c6b4bcc8c40a93ff3 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Sun, 15 Jun 2008 17:52:42 -0700 Subject: [PATCH] Fixes #236948: Sparkle no longer fails to close the "checking for updates" progress window when an appcast fails to load. --- SUUIBasedUpdateDriver.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUUIBasedUpdateDriver.m b/SUUIBasedUpdateDriver.m index 998a1101..ce979813 100644 --- a/SUUIBasedUpdateDriver.m +++ b/SUUIBasedUpdateDriver.m @@ -70,7 +70,7 @@ [statusController setMaxProgressValue:[response expectedContentLength]]; } -- (void)download:(NSURLDownload *)download didReceiveDataOfLength:(unsigned)length +- (void)download:(NSURLDownload *)download didReceiveDataOfLength:(NSUInteger)length { [statusController setProgressValue:[statusController progressValue] + length]; [statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ of %@", nil), [NSNumber humanReadableSizeFromDouble:[statusController progressValue]], [NSNumber humanReadableSizeFromDouble:[statusController maxProgressValue]]]];