diff --git a/MacPass/IntegrationSettings.xib b/MacPass/IntegrationSettings.xib index 2f6c87d6..cfeaff77 100644 --- a/MacPass/IntegrationSettings.xib +++ b/MacPass/IntegrationSettings.xib @@ -7,6 +7,7 @@ + diff --git a/MacPass/MPIntegrationSettingsController.h b/MacPass/MPIntegrationSettingsController.h index bda2554f..5268a805 100644 --- a/MacPass/MPIntegrationSettingsController.h +++ b/MacPass/MPIntegrationSettingsController.h @@ -12,5 +12,6 @@ @interface MPIntegrationSettingsController : MPViewController @property (weak) IBOutlet NSButton *enableServerCheckbutton; +@property (weak) IBOutlet NSButton *enableGlobalAutotypeCheckbutton; @end diff --git a/MacPass/MPIntegrationSettingsController.m b/MacPass/MPIntegrationSettingsController.m index 110e6729..c9331175 100644 --- a/MacPass/MPIntegrationSettingsController.m +++ b/MacPass/MPIntegrationSettingsController.m @@ -35,9 +35,11 @@ - (void)didLoadView { NSUserDefaultsController *defaultsController = [NSUserDefaultsController sharedUserDefaultsController]; - NSString *serverKeyPath = [NSString stringWithFormat:@"values.%@", kMPSettingsKeyEnableHttpServer]; + NSString *serverKeyPath = [MPSettingsHelper defaultControllerPathForKey:kMPSettingsKeyEnableHttpServer]; + NSString *globalAutotypeKeyPath = [MPSettingsHelper defaultControllerPathForKey:kMPSettingsKeyEnableGlobalAutotype]; [self.enableServerCheckbutton bind:NSValueBinding toObject:defaultsController withKeyPath:serverKeyPath options:nil]; [self.enableServerCheckbutton setEnabled:NO]; + [self.enableGlobalAutotypeCheckbutton bind:NSValueBinding toObject:defaultsController withKeyPath:globalAutotypeKeyPath options:nil]; } @end