mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Commands can be now disabled
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user