mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 16:22:21 +00:00
Fixed #64 Attachment count is now displayable as a column in the entry view
This commit is contained in:
Submodule KeePassKit updated: a232bbd601...76975731c3
File diff suppressed because it is too large
Load Diff
@@ -149,6 +149,9 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
NSTableColumn *attachmentsColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableAttachmentColumnIdentifier];
|
||||
NSTableColumn *notesColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableNotesColumnIdentifier];
|
||||
NSTableColumn *modifiedColumn = [[NSTableColumn alloc] initWithIdentifier:MPEntryTableModfiedColumnIdentifier];
|
||||
[notesColumn setMinWidth:40.0];
|
||||
[attachmentsColumn setMinWidth:40.0];
|
||||
[modifiedColumn setMinWidth:40.0];
|
||||
[self.entryTable addTableColumn:notesColumn];
|
||||
[self.entryTable addTableColumn:attachmentsColumn];
|
||||
[self.entryTable addTableColumn:modifiedColumn];
|
||||
@@ -250,8 +253,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"notes" options:options];
|
||||
}
|
||||
else if(isAttachmentColumn) {
|
||||
[[view textField] setStringValue:@""];
|
||||
//[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"countOfBinaries" options:nil];
|
||||
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"binaries.@count" options:nil];
|
||||
}
|
||||
else if(isModifedColumn) {
|
||||
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
|
||||
|
||||
Reference in New Issue
Block a user