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