Skip to content

Commit 5abb4d5

Browse files
committed
Preload historyViewController so contextual menus appear correctly if the repository opens with the staging area shown initially.
1 parent 24153c8 commit 5abb4d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PBGitSidebarController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ - (void)awakeFromNib
6565
commitViewController = [[PBGitCommitController alloc] initWithRepository:repository superController:superController];
6666
stashViewController = [[PBStashContentController alloc] initWithRepository:repository superController:superController];
6767

68-
[stashViewController loadView];
68+
[historyViewController view]; //preload historyViewController so the contextual menus in the sidebar work
69+
[stashViewController view];
6970

7071
[repository addObserver:self forKeyPath:@"refs" options:0 context:@"updateRefs"];
7172
[repository addObserver:self forKeyPath:@"currentBranch" options:0 context:@"currentBranchChange"];

0 commit comments

Comments
 (0)