From 7570afee69a631cca28d972f0533002cb440bde7 Mon Sep 17 00:00:00 2001 From: Tomasz Krasnyk Date: Thu, 25 Nov 2010 20:27:32 +0100 Subject: [PATCH] Commands can be now disabled --- Commands/PBCommand.h | 2 ++ Commands/PBCommand.m | 2 ++ 2 files changed, 4 insertions(+) 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; }