source: trunk/Sparkle/SUScheduledUpdateDriver.m @ 1046

Revision 271, 809 bytes checked in by speck, 4 years ago (diff)

Fix bug #275463 SUScheduledUpdateDriver doesn't call updaterDidNotFindUpdate

Line 
1//
2//  SUScheduledUpdateDriver.m
3//  Sparkle
4//
5//  Created by Andy Matuschak on 5/6/08.
6//  Copyright 2008 Andy Matuschak. All rights reserved.
7//
8
9#import "SUScheduledUpdateDriver.h"
10#import "Sparkle.h"
11
12@implementation SUScheduledUpdateDriver
13
14- (void)didFindValidUpdate
15{
16    showErrors = YES; // We only start showing errors after we present the UI for the first time.
17    [super didFindValidUpdate];
18}
19
20- (void)didNotFindUpdate
21{
22    if ([[updater delegate] respondsToSelector:@selector(updaterDidNotFindUpdate:)])
23        [[updater delegate] updaterDidNotFindUpdate:updater];
24    [self abortUpdate]; // Don't tell the user that no update was found; this was a scheduled update.
25}
26
27- (void)abortUpdateWithError:(NSError *)error
28{
29    if (showErrors)
30        [super abortUpdateWithError:error];
31    else
32        [self abortUpdate];
33}
34
35@end
Note: See TracBrowser for help on using the repository browser.