mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
fixed #523 refactoring regression
This commit is contained in:
@@ -96,7 +96,7 @@ FOUNDATION_EXPORT NSString *const MPDocumentGroupKey;
|
||||
@property (nonatomic, copy) MPEntrySearchContext *searchContext;
|
||||
@property (nonatomic, strong, readonly) NSArray *searchResult;
|
||||
|
||||
+ (KPKDatabaseFormat)versionForFileType:(NSString *)fileType;
|
||||
+ (KPKDatabaseFormat)formatForFileType:(NSString *)fileType;
|
||||
+ (NSString *)fileTypeForVersion:(KPKDatabaseFormat)format;
|
||||
|
||||
#pragma mark Lock/Decrypt
|
||||
|
||||
@@ -182,7 +182,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
return nil; // Saving without a password/key is not possible
|
||||
}
|
||||
NSString *fileType = self.fileTypeFromLastRunSavePanel;
|
||||
KPKDatabaseFormat format = [self.class versionForFileType:fileType];
|
||||
KPKDatabaseFormat format = [self.class formatForFileType:fileType];
|
||||
if(format == KPKDatabaseFormatUnknown) {
|
||||
if(outError != NULL) {
|
||||
NSDictionary *userInfo = @{ NSLocalizedDescriptionKey: NSLocalizedString(@"UNKNOWN_FILE_VERSION", "") };
|
||||
@@ -409,7 +409,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
|
||||
#pragma mark Properties
|
||||
- (KPKDatabaseFormat)formatForFileType {
|
||||
return [self.class versionForFileType:self.fileType];
|
||||
return [self.class formatForFileType:self.fileType];
|
||||
}
|
||||
|
||||
- (BOOL)encrypted {
|
||||
|
||||
Reference in New Issue
Block a user