mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
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:
1 parent
dccce32beb
commit
30abbb238a
1 file changed
+1
-3
Vendored
+1
-3
@@ -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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user