mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
fix initial stash load
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user