mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Update driver now correctly marks itself as "finished" before terminating.
This is important for apps which checked this value during an app delegate's applicationShouldTerminate:. Thanks to Nick Zitzmann for the patch.
This commit is contained in:
1 parent
fd20e0725b
commit
b96c95066c
1 file changed
+2
-1
@@ -288,7 +288,8 @@
|
||||
if ([[updater delegate] respondsToSelector:@selector(pathToRelaunchForUpdater:)])
|
||||
pathToRelaunch = [[updater delegate] pathToRelaunchForUpdater:updater];
|
||||
[NSTask launchedTaskWithLaunchPath:relaunchPath arguments:[NSArray arrayWithObjects:pathToRelaunch, [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], nil]];
|
||||
|
||||
|
||||
[self setValue:[NSNumber numberWithBool:YES] forKey:@"finished"];
|
||||
[NSApp terminate:self];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user