mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-30 05:28:50 +00:00
Call SUUpdater updaterDidRelaunchApplication: on delegate (1.x stub)
This commit is contained in:
1 parent
7689f9e8af
commit
3ad23bdcba
1 file changed
+7
Vendored
+7
@@ -86,6 +86,13 @@ static NSMutableDictionary *sharedUpdaters = nil;
|
||||
NSError *updaterError = nil;
|
||||
if (![self.updater startUpdater:&updaterError]) {
|
||||
SULog(SULogLevelError, @"Error: Failed to start updater with error: %@", updaterError);
|
||||
} else if ([bundle isEqual:NSBundle.mainBundle] && SPUUpdater.mainBundleRelaunchedFromUpdate) {
|
||||
// Give another runloop cycle's chance for delegate to be set
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
if ([self.delegate respondsToSelector:@selector(updaterDidRelaunchApplication:)]) {
|
||||
[self.delegate updaterDidRelaunchApplication:self];
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
return self;
|
||||
|
||||
Reference in new issue
Block a user