mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Make a document the active window if it already exists
This commit is contained in:
@@ -37,10 +37,12 @@
|
||||
if (!document) {
|
||||
|
||||
if (!(document = [[PBGitRepository alloc] initWithURL:url]))
|
||||
return NO;
|
||||
return nil;
|
||||
|
||||
[self addDocument:document];
|
||||
}
|
||||
else
|
||||
[document showWindows];
|
||||
|
||||
return document;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user