mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 16:22:21 +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
|
name:MPDocumentDidAddEntryNotification
|
||||||
object:document];
|
object:document];
|
||||||
_windowAssociationsController.observer = document;
|
_windowAssociationsController.observer = document;
|
||||||
|
[NSNotificationCenter.defaultCenter addObserver:self
|
||||||
|
selector:@selector(_didChangeCurrentItem:)
|
||||||
|
name:MPDocumentCurrentItemChangedNotification
|
||||||
|
object:document];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc {
|
- (void)dealloc {
|
||||||
@@ -620,4 +624,8 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
|||||||
[self.titleTextField becomeFirstResponder];
|
[self.titleTextField becomeFirstResponder];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)_didChangeCurrentItem:(NSNotification *)notificiation {
|
||||||
|
self.showPassword = NO;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user