mirror of
https://github.com/MacPass/MacPass.git
synced 2026-01-31 05:58:24 +00:00
Moved accessibilty permission checks into MPAutotypeDoctor. Added screen capture permission test.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#import "MPIntegrationPreferencesController.h"
|
||||
#import "MPSettingsHelper.h"
|
||||
#import "MPIconHelper.h"
|
||||
#import "MPAutotypeDaemon.h"
|
||||
#import "MPAutotypeDoctor.h"
|
||||
|
||||
#import "DDHotKeyCenter.h"
|
||||
#import "DDHotKey+MacPassAdditions.h"
|
||||
@@ -105,7 +105,8 @@
|
||||
}
|
||||
|
||||
- (void)_updateAccessabilityWarning {
|
||||
BOOL hasAutotypeSupport = MPAutotypeDaemon.defaultDaemon.autotypeSupported;
|
||||
|
||||
BOOL hasAutotypeSupport = MPAutotypeDoctor.defaultDoctor.hasAccessibiltyPermissions;
|
||||
|
||||
if(hasAutotypeSupport) {
|
||||
[self.autotypeStackView setVisibilityPriority:NSStackViewVisibilityPriorityNotVisible forView:self.autotypeWarningTextField];
|
||||
@@ -118,6 +119,6 @@
|
||||
}
|
||||
|
||||
- (void)openAccessibiltyPreferences:(id)sender {
|
||||
[MPAutotypeDaemon.defaultDaemon openAccessibiltyPreferences];
|
||||
[MPAutotypeDoctor.defaultDoctor showPermissionCheckReport];
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user