mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Handle app termination in the user driver
If an automatic update needs to be applied at termination, the app delegate will need to hold responsibility of delaying termination until Sparkle is ready to relaunch
This commit is contained in:
1 parent
5a60ddaf8c
commit
0e97f0b4b6
6 files changed
+57
-28
No files matched your search
@@ -129,6 +129,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)terminateApplication
|
||||
{
|
||||
[NSApp terminate:nil];
|
||||
}
|
||||
|
||||
- (void)dismissUpdateInstallation
|
||||
{
|
||||
NSLog(@"Dismissing the installation.");
|
||||
@@ -148,8 +153,8 @@
|
||||
|
||||
- (void)windowDidLoad
|
||||
{
|
||||
//self.updater.userUpdaterDriver = [[SUSparkleUserUpdaterDriver alloc] initWithHost:[[SUHost alloc] initWithBundle:[NSBundle mainBundle]]];
|
||||
self.updater.userUpdaterDriver = [[SULoggerUpdateDriver alloc] init];
|
||||
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