mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 14:39:41 +00:00
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:
@@ -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 = @"";
|
||||
|
||||
Reference in New Issue
Block a user