mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-15 07:32:30 +00:00
Using KPKDatabaseType instead of KPKVersion.
This commit is contained in:
@@ -193,7 +193,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
|
||||
NSString *fileType = document.fileType;
|
||||
/* we did open as legacy */
|
||||
if([fileType isEqualToString:MPLegacyDocumentUTI]) {
|
||||
if(document.tree.minimumVersion != KPKLegacyVersion) {
|
||||
if(document.tree.minimumType != KPKDatabaseTypeBinary) {
|
||||
NSAlert *alert = [[NSAlert alloc] init];
|
||||
alert.alertStyle = NSWarningAlertStyle;
|
||||
alert.messageText = NSLocalizedString(@"WARNING_ON_LOSSY_SAVE", "");
|
||||
|
||||
Reference in New Issue
Block a user