mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 07:59:27 +00:00
KeePassKit API changes. Fixed binding leak issue preventing the document from being deallocated
This commit is contained in:
@@ -72,6 +72,8 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[self.outlineView unbind:NSContentBinding];
|
||||
[self.treeController unbind:NSContentBinding];
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
[self.outlineView setDelegate:nil];
|
||||
}
|
||||
@@ -299,6 +301,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
||||
}
|
||||
|
||||
- (void)_updateExpirationDisplay {
|
||||
return;
|
||||
MPDocument *document = [[self windowController] document];
|
||||
[document.root.timeInfo isExpired];
|
||||
[[document.tree allGroups] enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
|
||||
|
||||
Reference in New Issue
Block a user