Skip to content

Commit 67fb5e7

Browse files
NikKovIoslucasderraugh
authored andcommitted
Welcome window shows when all tabs are closed. (#568)
1 parent d690d37 commit 67fb5e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

GitUp/Application/DocumentController.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ - (void)addDocument:(NSDocument*)document {
4949
[[AppDelegate sharedDelegate] handleDocumentCountChanged];
5050
}
5151

52+
- (void)removeDocument:(NSDocument*)document {
53+
[super removeDocument:document];
54+
55+
[[AppDelegate sharedDelegate] handleDocumentCountChanged];
56+
}
57+
5258
- (void)newWindowForTab:(id)sender {
5359
[self openDocument:sender];
5460
}

0 commit comments

Comments
 (0)