Using KeePassKit Framework

Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
michael starke
2015-10-29 18:25:08 +01:00
parent 7f22bcf296
commit 8ddf2373dc
46 changed files with 130 additions and 134 deletions

View File

@@ -24,11 +24,7 @@
#import "MPActionHelper.h"
#import "MPSettingsHelper.h"
#import "KPKEntry.h"
#import "KPKBinary.h"
#import "KPKAutotype.h"
#import "KPKTimeInfo.h"
#import "KPKWindowAssociation.h"
#import "KeePassKit/KeePassKit.h"
#import "HNHScrollView.h"
#import "HNHRoundedSecureTextField.h"
@@ -184,7 +180,11 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
[savePanel beginSheetModalForWindow:[[self windowController] window] completionHandler:^(NSInteger result) {
if(result == NSFileHandlingPanelOKButton) {
[binary saveToLocation:[savePanel URL]];
NSError *error;
BOOL sucess = [binary saveToLocation:[savePanel URL] error:&error];
if(!sucess && error) {
[NSApp presentError:error];
}
}
}];
}