Fixed regression of newly created entry not being properly selected

This commit is contained in:
Michael Starke 2021-01-04 20:49:48 +01:00
parent f010ec057d
commit f25db6b418
1 changed files with 4 additions and 0 deletions

View File

@ -475,6 +475,10 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
NSUInteger row = [self.entryArrayController.arrangedObjects indexOfObject:entry];
[self.entryTable scrollRowToVisible:row];
[self.entryTable selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
// since we do not update the current selection when the table view is not first responder, do it here manually
if(self.entryTable.window.firstResponder != self.entryTable) {
document.selectedEntries = self.entryArrayController.selectedObjects;
}
}
- (void)_didUpdateSearchResults:(NSNotification *)notification {