File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ - (void)awakeFromNib
65
65
commitViewController = [[PBGitCommitController alloc ] initWithRepository: repository superController: superController];
66
66
stashViewController = [[PBStashContentController alloc ] initWithRepository: repository superController: superController];
67
67
68
- [stashViewController loadView ];
68
+ [historyViewController view ]; // preload historyViewController so the contextual menus in the sidebar work
69
+ [stashViewController view ];
69
70
70
71
[repository addObserver: self forKeyPath: @" refs" options: 0 context: @" updateRefs" ];
71
72
[repository addObserver: self forKeyPath: @" currentBranch" options: 0 context: @" currentBranchChange" ];
@@ -137,6 +138,8 @@ - (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(
137
138
}
138
139
} else if ([kObservingContextSubmodules isEqualToString: (__bridge NSString *)context]) {
139
140
[submodules.children removeAllObjects ];
141
+ [sourceView reloadData ]; // reload now otherwise the outline view may crash while loading old objects
142
+
140
143
NSArray *newSubmodules = [change objectForKey: NSKeyValueChangeNewKey ];
141
144
142
145
for (PBGitSubmodule *submodule in newSubmodules) {
You can’t perform that action at this time.
0 commit comments