Skip to content

Commit

Permalink
Make sure the commit view gets refreshed when 'Stage' gets selected a…
Browse files Browse the repository at this point in the history
…nd the auto-refresh is on.
  • Loading branch information
jphalip committed Jun 17, 2012
1 parent 7fafdb8 commit 3386fc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PBGitWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ - (void) changeContentController:(PBViewController *)controller

[self setNextResponder: contentController];
[[self window] makeFirstResponder:[contentController firstResponder]];
if ([PBGitDefaults refreshAutomatically]) {
[contentController refresh:self];
}
[contentController addObserver:self forKeyPath:@"status" options:NSKeyValueObservingOptionInitial context:@"statusChange"];
}

Expand Down Expand Up @@ -175,7 +178,7 @@ - (void) showErrorSheetAlertDidEnd:(NSAlert *)alert returnCode:(NSInteger)code c
- (void)windowDidBecomeKey:(NSNotification *)notification
{
if ([PBGitDefaults refreshAutomatically]) {
[contentController refresh:nil];
[contentController refresh:self];
}

if ([PBGitDefaults isUseITerm2]) {
Expand Down

0 comments on commit 3386fc7

Please sign in to comment.