Show passwords is temporary, changing entries (or locking the db) will hide the password again. fixes #806

This commit is contained in:
Michael Starke
2018-07-03 11:00:17 +02:00
parent 06f2a2037e
commit 2e869606d5

View File

@@ -182,6 +182,10 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
name:MPDocumentDidAddEntryNotification
object:document];
_windowAssociationsController.observer = document;
[NSNotificationCenter.defaultCenter addObserver:self
selector:@selector(_didChangeCurrentItem:)
name:MPDocumentCurrentItemChangedNotification
object:document];
}
- (void)dealloc {
@@ -620,4 +624,8 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
[self.titleTextField becomeFirstResponder];
}
- (void)_didChangeCurrentItem:(NSNotification *)notificiation {
self.showPassword = NO;
}
@end