began work for seamless editing with history support

This commit is contained in:
michael starke
2016-08-25 18:02:19 +02:00
parent b7357e2e43
commit 2958f5255b
14 changed files with 121 additions and 105 deletions

View File

@@ -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];
}