mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
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:
1 parent
f4c6738793
commit
8570539aab
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user