mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 13:39:27 +00:00
Combined KeePassHttp and Autotype preferences in one window
Added enable auto type preferences key
This commit is contained in:
43
MacPass/MPIntegrationSettingsController.m
Normal file
43
MacPass/MPIntegrationSettingsController.m
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// MPServerSettingsController.m
|
||||
// MacPass
|
||||
//
|
||||
// Created by Michael Starke on 17.06.13.
|
||||
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MPIntegrationSettingsController.h"
|
||||
#import "MPSettingsHelper.h"
|
||||
#import "MPIconHelper.h"
|
||||
|
||||
@interface MPIntegrationSettingsController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation MPIntegrationSettingsController
|
||||
|
||||
- (NSString *)identifier {
|
||||
return @"Integration";
|
||||
}
|
||||
|
||||
- (NSImage *)image {
|
||||
return [NSImage imageNamed:NSImageNameComputer];
|
||||
}
|
||||
|
||||
- (NSString *)label {
|
||||
return NSLocalizedString(@"INTEGRATION_SETTINGS", "");
|
||||
}
|
||||
|
||||
- (id)init {
|
||||
self = [super initWithNibName:@"IntegrationSettings" bundle:nil];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)didLoadView {
|
||||
NSUserDefaultsController *defaultsController = [NSUserDefaultsController sharedUserDefaultsController];
|
||||
NSString *serverKeyPath = [NSString stringWithFormat:@"values.%@", kMPSettingsKeyEnableHttpServer];
|
||||
[self.enableServerCheckbutton bind:NSValueBinding toObject:defaultsController withKeyPath:serverKeyPath options:nil];
|
||||
[self.enableServerCheckbutton setEnabled:NO];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user