From 2f90a3d03a5358535f5079c799999010f9c8a90b Mon Sep 17 00:00:00 2001 From: Etienne Samson Date: Fri, 9 Nov 2018 19:06:43 +0100 Subject: [PATCH] Activate GitX after opening the repository This makes the window open in the current Space, instead of where the current main window is, which would have triggered a Space switch. --- Classes/gitx.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/gitx.m b/Classes/gitx.m index eccb89e1f..af10f2c2e 100644 --- a/Classes/gitx.m +++ b/Classes/gitx.m @@ -121,8 +121,8 @@ void handleOpenRepository(NSURL *repositoryURL, NSArray *arguments) { GitXApplication *gitXApp = [SBApplication applicationWithBundleIdentifier:kGitXBundleIdentifier]; [gitXApp setSendMode:kAENoReply]; - [gitXApp activate]; [gitXApp open:repositoryURL withOptions:arguments]; + [gitXApp activate]; return; }