Hopefully finally fixing 245744; it wasn't fixed by the previous revision that claimed it was. There was a tricksy subclassing nuance that eluded me.

This commit is contained in:
Andy Matuschak committed 2008-07-15 20:57:57 -07:00
1 parent f4c6738793
commit 8570539aab
1 file changed
+3 -3
+3 -3
View File
@@ -13,12 +13,12 @@
- (void)checkForUpdatesAtURL:(NSURL *)appcastURL hostBundle:(NSBundle *)hb
{
[super checkForUpdatesAtURL:appcastURL hostBundle:hb];
checkingController = [[SUStatusController alloc] initWithHostBundle:hb];
[[checkingController window] center]; // Force the checking controller to load its window.
[checkingController beginActionWithTitle:SULocalizedString(@"Checking for updates\u2026", nil) maxProgressValue:0 statusText:nil];
[checkingController setButtonTitle:SULocalizedString(@"Cancel", nil) target:self action:@selector(cancelCheckForUpdates:) isDefault:NO];
[checkingController showWindow:self];
[super checkForUpdatesAtURL:appcastURL hostBundle:hb];
}
- (void)closeCheckingWindow
@@ -48,10 +48,10 @@
[super appcastDidFinishLoading:ac];
}
- (void)abortUpdate
- (void)abortUpdateWithError:(NSError *)error
{
[self closeCheckingWindow];
[super abortUpdate];
[super abortUpdateWithError:error];
}
- (void)appcast:(SUAppcast *)ac failedToLoadWithError:(NSError *)error