mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 17:32:17 +00:00
Refacoted window and view controller to use windowNibName and nibName. Fixes #164
This commit is contained in:
@@ -37,13 +37,17 @@
|
||||
|
||||
@implementation MPDatabaseSettingsWindowController
|
||||
|
||||
- (NSString *)windowNibName {
|
||||
return @"DatabaseSettingsWindow";
|
||||
}
|
||||
|
||||
- (id)init {
|
||||
self = [self initWithDocument:nil];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id)initWithDocument:(MPDocument *)document {
|
||||
self = [super initWithWindowNibName:@"DatabaseSettingsWindow"];
|
||||
self = [super initWithWindow:nil];
|
||||
if(self) {
|
||||
_document = document;
|
||||
_missingFeature = NSLocalizedString(@"KDBX_ONLY_FEATURE", "Feature only available in kdbx databases");
|
||||
|
||||
Reference in New Issue
Block a user