mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 23:09:33 +00:00
Revert "Adjusted checks for auto-type permissions"
This reverts commit 7095d55670.
# Conflicts:
# MacPass/MPAutotypeEnvironment.h
# MacPass/MPAutotypeEnvironment.m
This commit is contained in:
@@ -51,17 +51,14 @@
|
||||
return instance;
|
||||
}
|
||||
|
||||
- (BOOL)hasNecessaryPermissionForTask:(MPAutotypeTask)task {
|
||||
BOOL permissionsOK = YES;
|
||||
switch(task) {
|
||||
case MPAutotypeTaskGlobalAutotype:
|
||||
permissionsOK &= [self hasScreenRecordingPermissions:NULL];
|
||||
// fallthrough!
|
||||
case MPAutotypeTaskAutotype:
|
||||
permissionsOK &= [self hasAccessibiltyPermissions:NULL];
|
||||
break;
|
||||
- (BOOL)hasNecessaryAutotypePermissions {
|
||||
if(![self hasAccessibiltyPermissions:NULL]) {
|
||||
return NO;
|
||||
}
|
||||
return permissionsOK;
|
||||
if(![self hasScreenRecordingPermissions:NULL]) {
|
||||
return NO;
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)hasScreenRecordingPermissions:(NSError *__autoreleasing*)error {
|
||||
|
||||
Reference in New Issue
Block a user