Enabled version browsing when database is locked

This commit is contained in:
Michael Starke 2022-02-09 15:52:40 +01:00
parent 2956a2e7c1
commit 43e667a157
1 changed files with 5 additions and 1 deletions

View File

@ -888,8 +888,12 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
KPKEntry *targetEntry = targetEntries.count == 1 ? targetEntries.firstObject : nil;
KPKGroup *targetGroup = targetGroups.count == 1 ? targetGroups.firstObject : nil;
if(self.encrypted || self.isReadOnly) {
if(anItem.action == @selector(revertDocumentToSaved:) ||
anItem.action == @selector(browseDocumentVersions:)) {
return YES;
}
return NO;
}