mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 00:19:23 +00:00
Added removed validation but calling into central document function, since the responder needs to validate the menu items #112
This commit is contained in:
@@ -568,6 +568,16 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
self.trashBar.inactiveGradient = [[NSGradient alloc] initWithColors:inactiveColors];
|
||||
}
|
||||
|
||||
#pragma mark Validation
|
||||
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem {
|
||||
MPDocument *document = [[self windowController] document];
|
||||
if(![document validateMenuItem:menuItem]) {
|
||||
return NO;
|
||||
}
|
||||
return YES;
|
||||
/* TODO handle _clickedOrSlectedEnty */
|
||||
}
|
||||
|
||||
#pragma mark ContextMenu
|
||||
|
||||
- (void)_setupEntryMenu {
|
||||
|
||||
Reference in New Issue
Block a user