Skip to content

Commit e07911c

Browse files
committed
Revert "fix not-displaying submodules"
This reverts commit d70af98.
1 parent 770f0df commit e07911c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Controller/PBSubmoduleController.m

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

13-
@interface PBSubmoduleController()
14-
@property (nonatomic, retain) NSArray *submodules;
15-
@end
16-
17-
1813
@implementation PBSubmoduleController
19-
@synthesize submodules;
2014

2115
- (id) initWithRepository:(PBGitRepository *) repo {
2216
if ((self = [super init])){
@@ -56,7 +50,7 @@ - (void) reload {
5650
}
5751
}
5852

59-
self.submodules = loadedSubmodules;
53+
submodules = loadedSubmodules;
6054
});
6155
}
6256

@@ -120,7 +114,7 @@ - (BOOL) validateMenuItem:(NSMenuItem *)menuItem {
120114
shouldBeEnabled = NO;
121115
//TODO implementation missing
122116
} else {
123-
shouldBeEnabled = [self.submodules count] > 0;
117+
shouldBeEnabled = [submodules count] > 0;
124118
}
125119
return shouldBeEnabled;
126120
}

0 commit comments

Comments
 (0)