mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 09:29:29 +00:00
Re-enabled password request before saving a database that has no password and key
Stripped logging code Fixed issue with save panel not being updated correctly when panel is just reshown
This commit is contained in:
@@ -11,6 +11,17 @@
|
||||
@class MPDocument;
|
||||
@class HNHRoundedSecureTextField;
|
||||
|
||||
@protocol MPPasswordEditWindowDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
/**
|
||||
* Get's called on dismissing the password editor.
|
||||
* @param changedPasswordOrKey YES if the password and/or key was saved (not necessairly changed!);
|
||||
*/
|
||||
- (void)didFinishPasswordEditing:(BOOL)changedPasswordOrKey;
|
||||
|
||||
@end
|
||||
|
||||
@interface MPPasswordEditWindowController : MPSheetWindowController <NSTextFieldDelegate>
|
||||
|
||||
@property (weak) IBOutlet HNHRoundedSecureTextField *passwordTextField;
|
||||
@@ -19,6 +30,9 @@
|
||||
@property (weak) IBOutlet NSButton *togglePasswordButton;
|
||||
@property (weak) IBOutlet NSTextField *errorTextField;
|
||||
@property (weak) IBOutlet NSButton *changePasswordButton;
|
||||
@property (nonatomic,assign) BOOL allowsEmptyPasswordOrKey;
|
||||
|
||||
@property (weak) id<MPPasswordEditWindowDelegate> delegate;
|
||||
|
||||
/**
|
||||
* Dedicated initializer for the Windowcontroller
|
||||
|
||||
Reference in New Issue
Block a user