mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
cleaned up code
This commit is contained in:
@@ -115,7 +115,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (id)init {
|
||||
- (instancetype)init {
|
||||
self = [super init];
|
||||
if(self) {
|
||||
_didLockFile = NO;
|
||||
|
||||
@@ -306,6 +306,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
|
||||
self.passwordEditWindowController.delegate = self;
|
||||
}
|
||||
[self.document addWindowController:self.passwordEditWindowController];
|
||||
|
||||
[NSApp beginSheet:self.passwordEditWindowController.window
|
||||
modalForWindow:self.window
|
||||
modalDelegate:self
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
- (id)initWithWindow:(NSWindow *)window {
|
||||
self = [super initWithWindow:window];
|
||||
if(self){
|
||||
//_allowsEmptyPasswordOrKey = YES;
|
||||
_showPassword = NO;
|
||||
_hasValidPasswordOrKey = NO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user