mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 09:29:29 +00:00
Using custom supressable dialog to check for autotype capabilities. Added notification when user performs autotype on disabled systems
This commit is contained in:
@@ -116,6 +116,7 @@
|
||||
[self.autotypeStackView setVisibilityPriority:NSStackViewVisibilityPriorityMustHold forView:self.openPreferencesButton];
|
||||
}
|
||||
|
||||
/*
|
||||
NSArray <NSControl *> *controls = @[ self.enableGlobalAutotypeCheckBox,
|
||||
self.hotKeyTextField,
|
||||
self.matchTitleCheckBox,
|
||||
@@ -126,10 +127,10 @@
|
||||
for(NSControl *control in controls) {
|
||||
control.enabled = hasAutotypeSupport;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
- (void)openAccessibiltyPreferences:(id)sender {
|
||||
[NSWorkspace.sharedWorkspace openURL:[NSURL URLWithString:@"x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"]];
|
||||
|
||||
[MPAutotypeDaemon.defaultDaemon openAccessibiltyPreferences];
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user