mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 05:59:32 +00:00
began work for seamless editing with history support
This commit is contained in:
@@ -171,14 +171,19 @@ typedef NS_ENUM(NSUInteger, MPPasswordRating) {
|
||||
}
|
||||
|
||||
- (IBAction)_usePassword:(id)sender {
|
||||
self.generatedPassword = self.password;
|
||||
if(self.shouldCopyPasswordToPasteboardButton.state == NSOnState) {
|
||||
[[MPPasteBoardController defaultController] copyObjects:@[self.password]];
|
||||
}
|
||||
if(self.completionHandler) {
|
||||
self.completionHandler(NSModalResponseOK, self.password);
|
||||
}
|
||||
[self.view.window performClose:sender];
|
||||
}
|
||||
|
||||
- (IBAction)_cancel:(id)sender {
|
||||
if(self.completionHandler) {
|
||||
self.completionHandler(NSModalResponseCancel, self.password);
|
||||
}
|
||||
[self.view.window performClose:sender];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user