mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
Show passwords is temporary, changing entries (or locking the db) will hide the password again. fixes #806
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user