HistoryView: Always show the correct current branch

This commit is contained in:
Pieter de Bie
2008-11-19 02:21:13 +01:00
parent edf4822e34
commit 32e30ad351
+1
View File
@@ -18,6 +18,7 @@
[historyController addObserver:self forKeyPath:@"repository.branches" options:0 context:@"branchChange"];
[historyController addObserver:self forKeyPath:@"repository.currentBranch" options:0 context:@"currentBranchChange"];
[self updateBranchMenu];
[self selectCurrentBranch];
}
- (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(id)context