mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 04:42:29 +00:00
display history on request
This commit is contained in:
@@ -455,7 +455,8 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
|||||||
|
|
||||||
|
|
||||||
- (void)_didExitSearch:(NSNotification *)notification {
|
- (void)_didExitSearch:(NSNotification *)notification {
|
||||||
[[self.entryTable tableColumnWithIdentifier:MPEntryTableParentColumnIdentifier] setHidden:YES];
|
[self.entryTable tableColumnWithIdentifier:MPEntryTableParentColumnIdentifier].hidden = YES;
|
||||||
|
self.filteredEntries = nil;
|
||||||
[self _updateContextBar];
|
[self _updateContextBar];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -476,6 +477,10 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
|||||||
|
|
||||||
- (void)_showEntryHistory:(NSNotification *)notification {
|
- (void)_showEntryHistory:(NSNotification *)notification {
|
||||||
[self _showContextBar];
|
[self _showContextBar];
|
||||||
|
KPKEntry *entry = notification.userInfo[MPDocumentEntryKey];
|
||||||
|
NSAssert(entry != nil, @"Resutls should never be nil");
|
||||||
|
[self.entryArrayController unbind:NSContentArrayBinding];
|
||||||
|
[self.entryArrayController bind:NSContentArrayBinding toObject:entry withKeyPath:NSStringFromSelector(@selector(history)) options:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)_hideEntryHistory:(NSNotification *)notification {
|
- (void)_hideEntryHistory:(NSNotification *)notification {
|
||||||
|
|||||||
Reference in New Issue
Block a user