mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 22:42:18 +00:00
Update KeePassKit (Fixed Group order and Icon issue)
Enhanced database locking to actually encrypt the data although the file is not stored before (so changes might get lost) Changed version handling a bit to make future export/save as possible
This commit is contained in:
@@ -8,12 +8,13 @@
|
||||
|
||||
#import "MPSavePanelAccessoryViewController.h"
|
||||
#import "MPDocument.h"
|
||||
#import "MPConstants.h"
|
||||
|
||||
#import "KPKUTIs.h"
|
||||
#import "KPKTree.h"
|
||||
|
||||
@interface MPSavePanelAccessoryViewController ()
|
||||
|
||||
@property (readwrite, assign) KPKVersion selectedVersion;
|
||||
@end
|
||||
|
||||
@implementation MPSavePanelAccessoryViewController
|
||||
@@ -45,7 +46,13 @@
|
||||
|
||||
- (IBAction)setFileType:(id)sender {
|
||||
NSString *uti = [[self.fileTypePopupButton selectedItem] representedObject];
|
||||
BOOL showInfoText = (self.document.tree.minimumVersion == KPKLegacyVersion && [uti isEqualToString:@"com.hicknhack.macpass.kdb"]);
|
||||
if([uti isEqualToString:MPLegacyDocumentUTI]) {
|
||||
self.selectedVersion = KPKLegacyVersion;
|
||||
}
|
||||
else if([uti isEqualToString:MPLegacyDocumentUTI]) {
|
||||
self.selectedVersion = KPKXmlVersion;
|
||||
}
|
||||
BOOL showInfoText = (self.document.tree.minimumVersion == KPKLegacyVersion && [uti isEqualToString:MPLegacyDocumentUTI]);
|
||||
[self.infoTextField setHidden:!showInfoText];
|
||||
[self.savePanel setAllowedFileTypes:@[uti]];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user