mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
Autotype settings are now correctly bound to the defaults
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="MPIntegrationSettingsController">
|
<customObject id="-2" userLabel="File's Owner" customClass="MPIntegrationSettingsController">
|
||||||
<connections>
|
<connections>
|
||||||
|
<outlet property="enableGlobalAutotypeCheckbutton" destination="tik-Ar-FJg" id="d2f-69-2BP"/>
|
||||||
<outlet property="enableServerCheckbutton" destination="2" id="17"/>
|
<outlet property="enableServerCheckbutton" destination="2" id="17"/>
|
||||||
<outlet property="view" destination="1" id="18"/>
|
<outlet property="view" destination="1" id="18"/>
|
||||||
</connections>
|
</connections>
|
||||||
|
|||||||
@@ -12,5 +12,6 @@
|
|||||||
@interface MPIntegrationSettingsController : MPViewController <MPSettingsTab>
|
@interface MPIntegrationSettingsController : MPViewController <MPSettingsTab>
|
||||||
|
|
||||||
@property (weak) IBOutlet NSButton *enableServerCheckbutton;
|
@property (weak) IBOutlet NSButton *enableServerCheckbutton;
|
||||||
|
@property (weak) IBOutlet NSButton *enableGlobalAutotypeCheckbutton;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@@ -35,9 +35,11 @@
|
|||||||
|
|
||||||
- (void)didLoadView {
|
- (void)didLoadView {
|
||||||
NSUserDefaultsController *defaultsController = [NSUserDefaultsController sharedUserDefaultsController];
|
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 bind:NSValueBinding toObject:defaultsController withKeyPath:serverKeyPath options:nil];
|
||||||
[self.enableServerCheckbutton setEnabled:NO];
|
[self.enableServerCheckbutton setEnabled:NO];
|
||||||
|
[self.enableGlobalAutotypeCheckbutton bind:NSValueBinding toObject:defaultsController withKeyPath:globalAutotypeKeyPath options:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user