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

@@ -23,6 +23,10 @@
_preferredEntry = entry;
_hidden = NSRunningApplication.currentApplication.isHidden;
_overrideSequence = [overrdieSequence copy];
/* capture the front most application if no one was supplied */
if(nil == targetApplication) {
targetApplication = NSWorkspace.sharedWorkspace.frontmostApplication;
}
if(!targetApplication) {
_pid = -1;
_windowTitle = @"";