From 0d89d91d00bd310347912765c8315413f968b895 Mon Sep 17 00:00:00 2001 From: David Catmull Date: Wed, 8 Jun 2011 16:35:46 -0600 Subject: [PATCH] fix initial stash load --- PBGitSidebarController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PBGitSidebarController.m b/PBGitSidebarController.m index 63290d6..14dd91d 100644 --- a/PBGitSidebarController.m +++ b/PBGitSidebarController.m @@ -65,6 +65,8 @@ static NSString * const kObservingContextSubmodules = @"submodulesChanged"; commitViewController = [[PBGitCommitController alloc] initWithRepository:repository superController:superController]; stashViewController = [[PBStashContentController alloc] initWithRepository:repository superController:superController]; + [stashViewController loadView]; + [repository addObserver:self forKeyPath:@"refs" options:0 context:@"updateRefs"]; [repository addObserver:self forKeyPath:@"currentBranch" options:0 context:@"currentBranchChange"]; [repository addObserver:self forKeyPath:@"branches" options:(NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew) context:@"branchesModified"]; @@ -87,6 +89,7 @@ static NSString * const kObservingContextSubmodules = @"submodulesChanged"; { [historyViewController closeView]; [commitViewController closeView]; + [stashViewController closeView]; [repository removeObserver:self forKeyPath:@"currentBranch"]; [repository removeObserver:self forKeyPath:@"branches"];