diff --git a/Commands/PBCommand.h b/Commands/PBCommand.h index 4f63935..8e3c1ae 100644 --- a/Commands/PBCommand.h +++ b/Commands/PBCommand.h @@ -19,7 +19,9 @@ NSString *commandDescription; NSMutableArray *parameters; + BOOL canBeFired; } +@property (nonatomic) BOOL canBeFired; @property (nonatomic, retain, readonly) PBGitRepository *repository; @property (nonatomic, retain) NSString *commandTitle; @property (nonatomic, retain) NSString *commandDescription; diff --git a/Commands/PBCommand.m b/Commands/PBCommand.m index e427372..a36364c 100644 --- a/Commands/PBCommand.m +++ b/Commands/PBCommand.m @@ -18,6 +18,7 @@ @synthesize commandDescription; @synthesize commandTitle; @synthesize repository; +@synthesize canBeFired; - (id) initWithDisplayName:(NSString *) aDisplayName parameters:(NSArray *) params { return [self initWithDisplayName:aDisplayName parameters:params repository:nil]; @@ -33,6 +34,7 @@ self.commandTitle = @""; self.commandDescription = @""; self.repository = repo; + self.canBeFired = YES; } return self; }