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

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