Fix AutoUpdate activation issues

Forcing the app to activate after we show the status window in AutoUpdate seems to work better
This commit is contained in:
Zorg committed 2016-02-28 15:34:11 -05:00
1 parent dccce32beb
commit 30abbb238a
1 file changed
+1 -3
+1 -3
View File
@@ -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];