File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -186,13 +186,13 @@ - (void) setup
186
186
{
187
187
config = [[PBGitConfig alloc ] initWithRepositoryPath: [[self fileURL ] path ]];
188
188
self.branches = [NSMutableArray array ];
189
- [self reloadRefs ];
190
189
currentBranchFilter = [PBGitDefaults branchFilter ];
191
190
revisionList = [[PBGitHistoryList alloc ] initWithRepository: self ];
192
-
193
191
resetController = [[PBGitResetController alloc ] initWithRepository: self ];
194
192
stashController = [[PBStashController alloc ] initWithRepository: self ];
195
193
submoduleController = [[PBSubmoduleController alloc ] initWithRepository: self ];
194
+ [self reloadRefs ];
195
+ [self readCurrentBranch ];
196
196
}
197
197
198
198
- (void )close
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ - (void)awakeFromNib
84
84
85
85
[sourceView setDoubleAction: @selector (outlineDoubleClicked )];
86
86
[sourceView setTarget: self ];
87
+ [self updateMetaDataForBranches ];
87
88
}
88
89
89
90
- (void )closeView
@@ -162,15 +163,14 @@ - (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(
162
163
for (PBGitSVRemoteItem* remote in [remotes children ]){
163
164
[self performSelectorInBackground: @selector (evaluateRemoteBadge: ) withObject: remote];
164
165
}
165
-
166
- [self updateMetaDataforBranches: branches];
166
+ [self updateMetaDataForBranches ];
167
167
}else {
168
168
[super observeValueForKeyPath: keyPath ofObject: object change: change context: context];
169
169
}
170
170
}
171
171
172
172
173
- -(void )updateMetaDataforBranches : (PBSourceViewItem *)theBranches
173
+ -(void )updateMetaDataForBranches : (PBSourceViewItem *)theBranches
174
174
{
175
175
for (PBGitSVBranchItem* branch in [theBranches children ]){
176
176
if ([branch isKindOfClass: [PBGitSVBranchItem class ]]){
@@ -184,11 +184,15 @@ -(void)updateMetaDataforBranches:(PBSourceViewItem *)theBranches
184
184
});
185
185
});
186
186
}else if ([branch isKindOfClass: [PBGitSVFolderItem class ]]) {
187
- [self updateMetaDataforBranches : branch];
187
+ [self updateMetaDataForBranches : branch];
188
188
}
189
189
}
190
190
}
191
191
192
+ -(void )updateMetaDataForBranches
193
+ {
194
+ [self updateMetaDataForBranches: branches];
195
+ }
192
196
193
197
#pragma mark Badges Methods
194
198
Original file line number Diff line number Diff line change @@ -135,7 +135,6 @@ - (void) changeContentController:(PBViewController *)controller
135
135
136
136
[self setNextResponder: contentController];
137
137
[[self window ] makeFirstResponder: [contentController firstResponder ]];
138
- [contentController updateView ];
139
138
[contentController addObserver: self forKeyPath: @" status" options: NSKeyValueObservingOptionInitial context: @" statusChange" ];
140
139
}
141
140
You can’t perform that action at this time.
0 commit comments