mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 17:29:28 +00:00
Removed unused View stubs
Cleaned the deselectoin/selection behavior on click/select/open/close of databases
This commit is contained in:
20
MacPass/MPToolbarItem.m
Normal file
20
MacPass/MPToolbarItem.m
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// MPToolbarItem.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 09.03.13.
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPToolbarItem.h"
|
||||
#import "MPActionHelper.h"
|
||||
|
||||
@implementation MPToolbarItem
|
||||
|
||||
- (void)validate {
|
||||
if(![self.view menu]) {
|
||||
id target = [NSApp targetForAction:[self action] to:nil from:self];
|
||||
[self setEnabled:( nil != target )];
|
||||
}
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user