mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Sparkle now gies visual indication that it's checking for updates when hte update's user initiated. ie: it pops up a status controller saying "checking for updates..." What was SUUserInitiatedUpdateDriver is now SUUIBasedUpdateDriver; SUUserInitiatedUpdateDriver now is a subclass of that, along with SUScheduledUpdateDriver. This is a happy little refactoring that let me remove some redundant code.
34 lines
671 B
Objective-C
34 lines
671 B
Objective-C
//
|
|
// SUScheduledUpdateDriver.m
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 5/6/08.
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#import "SUScheduledUpdateDriver.h"
|
|
#import "Sparkle.h"
|
|
|
|
@implementation SUScheduledUpdateDriver
|
|
|
|
- (void)didFindValidUpdate
|
|
{
|
|
showErrors = YES; // We only start showing errors after we present the UI for the first time.
|
|
[super didFindValidUpdate];
|
|
}
|
|
|
|
- (void)didNotFindUpdate
|
|
{
|
|
[self abortUpdate]; // Don't tell the user that no update was found; this was a scheduled update.
|
|
}
|
|
|
|
- (void)abortUpdateWithError:(NSError *)error
|
|
{
|
|
if (showErrors)
|
|
[super abortUpdateWithError:error];
|
|
else
|
|
[self abortUpdate];
|
|
}
|
|
|
|
@end
|