Skip to content

Commit 0d89d91

Browse files
author
David Catmull
committed
fix initial stash load
1 parent e254a44 commit 0d89d91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PBGitSidebarController.m

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

68+
[stashViewController loadView];
69+
6870
[repository addObserver:self forKeyPath:@"refs" options:0 context:@"updateRefs"];
6971
[repository addObserver:self forKeyPath:@"currentBranch" options:0 context:@"currentBranchChange"];
7072
[repository addObserver:self forKeyPath:@"branches" options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:@"branchesModified"];
@@ -87,6 +89,7 @@ - (void)closeView
8789
{
8890
[historyViewController closeView];
8991
[commitViewController closeView];
92+
[stashViewController closeView];
9093

9194
[repository removeObserver:self forKeyPath:@"currentBranch"];
9295
[repository removeObserver:self forKeyPath:@"branches"];

0 commit comments

Comments
 (0)