You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note that we explicitly use the host app's name here, since updating plugin for Mail relaunches Mail, not just the plugin.
306
+
[selfabortUpdateWithError:[NSErrorerrorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:SULocalizedString(@"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@.", nil), [host name]], NSLocalizedDescriptionKey, [NSStringstringWithFormat:@"Couldn't find the relauncher (expected to find it at %@)", relaunchPath], NSLocalizedFailureReasonErrorKey, nil]]];
307
+
// We intentionally don't abandon the update here so that the host won't initiate another.
308
+
return;
309
+
}
310
+
311
+
NSString *pathToRelaunch = [host bundlePath];
312
+
if ([[updater delegate] respondsToSelector:@selector(pathToRelaunchForUpdater:)])
// Note that we explicitly use the host app's name here, since updating plugin for Mail relaunches Mail, not just the plugin.
307
-
[selfabortUpdateWithError:[NSErrorerrorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:[NSDictionarydictionaryWithObjectsAndKeys:[NSStringstringWithFormat:SULocalizedString(@"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@.", nil), [host name]], NSLocalizedDescriptionKey, [NSStringstringWithFormat:@"Couldn't find the relauncher (expected to find it at %@)", relaunchPath], NSLocalizedFailureReasonErrorKey, nil]]];
308
-
// We intentionally don't abandon the update here so that the host won't initiate another.
309
-
return;
310
-
}
311
-
312
-
NSString *pathToRelaunch = [host bundlePath];
313
-
if ([[updater delegate] respondsToSelector:@selector(pathToRelaunchForUpdater:)])
[statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"Take care not to overflow the status window.") maxProgressValue:0.0statusText:nil];
172
171
[statusController setButtonEnabled:NO];
173
-
[superinstallUpdate];
172
+
[superinstallWithToolAndRelaunch:relaunch];
174
173
175
174
176
175
// if a user chooses to NOT relaunch the app (as is the case with WebKit
0 commit comments