From 2e869606d58685ae36b23b4e67db081c00e96034 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Tue, 3 Jul 2018 11:00:17 +0200 Subject: [PATCH] Show passwords is temporary, changing entries (or locking the db) will hide the password again. fixes #806 --- MacPass/MPEntryInspectorViewController.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MacPass/MPEntryInspectorViewController.m b/MacPass/MPEntryInspectorViewController.m index d7d16c2f..55e14d76 100644 --- a/MacPass/MPEntryInspectorViewController.m +++ b/MacPass/MPEntryInspectorViewController.m @@ -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