added option to lock on user logout

This commit is contained in:
michael starke
2017-07-02 09:22:20 +02:00
parent 90ca759e67
commit 47c9491e71
10 changed files with 65 additions and 35 deletions

View File

@@ -39,6 +39,7 @@
toObject:view
withKeyPath:[NSString stringWithFormat:@"%@.%@", NSStringFromSelector(@selector(objectValue)), NSStringFromSelector(@selector(value))]
options:nil];
// TODO: Move to public KeePassKit API!
for(NSControl *control in @[view.labelTextField, view.valueTextField, view.removeButton ]) {
[control bind:NSEnabledBinding
@@ -53,9 +54,8 @@
view.observer = tableView.window.windowController.document;
//[view.removeButton bind:NSVisibleBinding toObject:view.valueTextField withKeyPath:@"" options:nil];
return view;
}
@end