mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 23:09:21 +00:00
Changed Inspector to dual tab view and removed Popups
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
MPPasswordCharacterFlags _characterFlags;
|
||||
}
|
||||
@property (retain) NSString *password;
|
||||
@property (retain) NSString *generatedPassword;
|
||||
|
||||
@property (assign) IBOutlet NSTextField *passwordTextField;
|
||||
@property (assign) IBOutlet NSTextField *passwordLengthTextField;
|
||||
@@ -36,6 +37,7 @@
|
||||
- (IBAction)_generatePassword:(id)sender;
|
||||
- (IBAction)_toggleCharacters:(id)sender;
|
||||
- (IBAction)_usePassword:(id)sender;
|
||||
- (IBAction)_cancel:(id)sender;
|
||||
|
||||
@end
|
||||
|
||||
@@ -89,6 +91,7 @@
|
||||
}
|
||||
|
||||
- (IBAction)_usePassword:(id)sender {
|
||||
self.generatedPassword = _password;
|
||||
if([self.addPasswordToPasteboardButton state] == NSOnState) {
|
||||
[[MPPasteBoardController defaultController] copyObjects:@[_password]];
|
||||
}
|
||||
@@ -96,6 +99,12 @@
|
||||
[target performClose:nil];
|
||||
}
|
||||
|
||||
- (IBAction)_cancel:(id)sender {
|
||||
id target = [NSApp targetForAction:@selector(performClose:)];
|
||||
[target performClose:nil];
|
||||
|
||||
}
|
||||
|
||||
- (void)setUseCustomString:(BOOL)useCustomString {
|
||||
if(_useCustomString != useCustomString) {
|
||||
_useCustomString = useCustomString;
|
||||
|
||||
Reference in New Issue
Block a user