Skip to content

Commit bab7599

Browse files
committed
Merge pull request #183 from mczepiel/proxy-icon-fix
Proxy icon fix
2 parents b547c26 + 0812581 commit bab7599

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PBGitWindowController.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ - (id)initWithRepository:(PBGitRepository*)theRepository displayDefault:(BOOL)di
4242
return self;
4343
}
4444

45+
- (void)synchronizeWindowTitleWithDocumentName
46+
{
47+
[super synchronizeWindowTitleWithDocumentName];
48+
49+
// Point window proxy icon at project directory, not internal .git dir
50+
NSString *workingDirectory = [self.repository workingDirectory];
51+
[[self window] setRepresentedURL:[NSURL fileURLWithPath:workingDirectory
52+
isDirectory:YES]];
53+
}
54+
4555
- (void)windowWillClose:(NSNotification *)notification
4656
{
4757
//DLog(@"Window will close!");

0 commit comments

Comments
 (0)