From 30abbb238ab5b789ebc0223151ce73443ee5d807 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 28 Feb 2016 15:34:11 -0500 Subject: [PATCH] Fix AutoUpdate activation issues Forcing the app to activate after we show the status window in AutoUpdate seems to work better --- Sparkle/Autoupdate/Autoupdate.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sparkle/Autoupdate/Autoupdate.m b/Sparkle/Autoupdate/Autoupdate.m index 6190ee00..57fc06a5 100644 --- a/Sparkle/Autoupdate/Autoupdate.m +++ b/Sparkle/Autoupdate/Autoupdate.m @@ -186,6 +186,7 @@ static const NSTimeInterval SUTerminationTimeDelay = 0.5; [self.statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"") maxProgressValue: 0 statusText: @""]; [self.statusController showWindow:self]; + [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; } [SUInstaller installFromUpdateFolder:self.updateFolderPath @@ -271,9 +272,6 @@ int main(int __unused argc, const char __unused *argv[]) NSApplication *application = [NSApplication sharedApplication]; BOOL shouldShowUI = (args.count > 6) ? [args[6] boolValue] : YES; - if (shouldShowUI) { - [application activateIgnoringOtherApps:YES]; - } NSString *hostBundlePath = args[3];