Adjusted checks for auto-type permissions

We do not need to check for screen recording permissions, if auto-type is executed. Only global auto-type requires screen recording permissions and should check for them.
This commit is contained in:
Michael Starke
2020-09-21 17:44:15 +02:00
parent e4946bd91b
commit 7095d55670
6 changed files with 37 additions and 19 deletions

View File

@@ -106,7 +106,7 @@
- (void)_updateAccessabilityWarning {
BOOL hasAutotypeSupport = MPAutotypeDoctor.defaultDoctor.hasNecessaryAutotypePermissions;
BOOL hasAutotypeSupport = [MPAutotypeDoctor.defaultDoctor hasNecessaryPermissionForTask:MPAutotypeTaskGlobalAutotype];
if(hasAutotypeSupport) {
[self.autotypeStackView setVisibilityPriority:NSStackViewVisibilityPriorityNotVisible forView:self.autotypeWarningTextField];