Skip to content

Commit d70af98

Browse files
author
Scott Mckie
committed
fix not-displaying submodules
1 parent 83307f6 commit d70af98

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Controller/PBSubmoduleController.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
#import "PBGitRepository.h"
1111
#import "PBOpenDocumentCommand.h"
1212

13+
@interface PBSubmoduleController()
14+
@property (nonatomic, retain) NSArray *submodules;
15+
@end
16+
17+
1318
@implementation PBSubmoduleController
19+
@synthesize submodules;
1420

1521
- (id) initWithRepository:(PBGitRepository *) repo {
1622
if ((self = [super init])){
@@ -50,7 +56,7 @@ - (void) reload {
5056
}
5157
}
5258

53-
submodules = loadedSubmodules;
59+
self.submodules = loadedSubmodules;
5460
});
5561
}
5662

@@ -114,7 +120,7 @@ - (BOOL) validateMenuItem:(NSMenuItem *)menuItem {
114120
shouldBeEnabled = NO;
115121
//TODO implementation missing
116122
} else {
117-
shouldBeEnabled = [submodules count] > 0;
123+
shouldBeEnabled = [self.submodules count] > 0;
118124
}
119125
return shouldBeEnabled;
120126
}

0 commit comments

Comments
 (0)