mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Remove initializer taking SUHost from SUUserUpdaterDriver
This commit is contained in:
1 parent
48e0febf1a
commit
0bb5de196a
3 files changed
+8
-19
No files matched your search
@@ -11,25 +11,11 @@
|
||||
|
||||
#import "SUUserUpdaterDriver.h"
|
||||
|
||||
@interface SULoggerUpdateDriver : NSObject<SUUserUpdaterDriver>
|
||||
|
||||
@property (nonatomic, readonly) SUHost *host;
|
||||
|
||||
@interface SULoggerUpdateDriver : NSObject <SUUserUpdaterDriver>
|
||||
@end
|
||||
|
||||
@implementation SULoggerUpdateDriver
|
||||
|
||||
@synthesize host = _host;
|
||||
|
||||
- (instancetype)initWithHost:(SUHost *)host
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
_host = host;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)requestUpdatePermissionWithSystemProfile:(NSArray *)systemProfile reply:(void (^)(SUUpdatePermissionPromptResult *))reply
|
||||
{
|
||||
NSLog(@"Giving permission to automatically install updates!");
|
||||
@@ -132,7 +118,8 @@
|
||||
|
||||
- (void)windowDidLoad
|
||||
{
|
||||
self.updater.userUpdaterDriver = [[/* SUSparkleUserUpdaterDriver */ SULoggerUpdateDriver alloc] initWithHost:[[SUHost alloc] initWithBundle:[NSBundle mainBundle]]];
|
||||
//self.updater.userUpdaterDriver = [[SUSparkleUserUpdaterDriver alloc] initWithHost:[[SUHost alloc] initWithBundle:[NSBundle mainBundle]]];
|
||||
self.updater.userUpdaterDriver = [[SULoggerUpdateDriver alloc] init];
|
||||
}
|
||||
|
||||
- (NSString *)windowNibName
|
||||
|
||||
Reference in new issue
Block a user