willInstallUpdateOnQuit has been discarded in latest Sparkle.
This commit is contained in:
parent
6a5842d03a
commit
a918cd6b4e
1 changed files with 7 additions and 7 deletions
|
@ -40,20 +40,20 @@ void CallNSInvocation(ScopedNSInvocation invocation) {
|
||||||
|
|
||||||
@implementation SUUpdaterDelegate
|
@implementation SUUpdaterDelegate
|
||||||
|
|
||||||
- (void)updater:(SUUpdater*)updater
|
- (BOOL)updater:(SUUpdater*)updater
|
||||||
willInstallUpdateOnQuit:(SUAppcastItem*)update
|
shouldPostponeRelaunchForUpdate:(SUAppcastItem*)update
|
||||||
immediateInstallationInvocation:(NSInvocation*)invocation {
|
untilInvoking:(NSInvocation*)invocation {
|
||||||
AutoUpdaterDelegate* delegate = auto_updater::AutoUpdater::GetDelegate();
|
AutoUpdaterDelegate* delegate = auto_updater::AutoUpdater::GetDelegate();
|
||||||
if (!delegate) {
|
if (!delegate)
|
||||||
[invocation invoke];
|
return NO;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string version(base::SysNSStringToUTF8([update versionString]));
|
std::string version(base::SysNSStringToUTF8([update versionString]));
|
||||||
ScopedNSInvocation invocation_ptr([invocation retain]);
|
ScopedNSInvocation invocation_ptr([invocation retain]);
|
||||||
delegate->WillInstallUpdate(
|
delegate->WillInstallUpdate(
|
||||||
version,
|
version,
|
||||||
base::Bind(&CallNSInvocation, base::Passed(invocation_ptr.Pass())));
|
base::Bind(&CallNSInvocation, base::Passed(invocation_ptr.Pass())));
|
||||||
|
|
||||||
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue