Skip to content

Commit 7570afe

Browse files
Commands can be now disabled
1 parent cc5c93c commit 7570afe

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Commands/PBCommand.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
NSString *commandDescription;
2020

2121
NSMutableArray *parameters;
22+
BOOL canBeFired;
2223
}
24+
@property (nonatomic) BOOL canBeFired;
2325
@property (nonatomic, retain, readonly) PBGitRepository *repository;
2426
@property (nonatomic, retain) NSString *commandTitle;
2527
@property (nonatomic, retain) NSString *commandDescription;

Commands/PBCommand.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ @implementation PBCommand
1818
@synthesize commandDescription;
1919
@synthesize commandTitle;
2020
@synthesize repository;
21+
@synthesize canBeFired;
2122

2223
- (id) initWithDisplayName:(NSString *) aDisplayName parameters:(NSArray *) params {
2324
return [self initWithDisplayName:aDisplayName parameters:params repository:nil];
@@ -33,6 +34,7 @@ - (id) initWithDisplayName:(NSString *) aDisplayName parameters:(NSArray *) para
3334
self.commandTitle = @"";
3435
self.commandDescription = @"";
3536
self.repository = repo;
37+
self.canBeFired = YES;
3638
}
3739
return self;
3840
}

0 commit comments

Comments
 (0)