Refactored Autotype to use environment for better encapsulation of parameters

This commit is contained in:
Michael Starke
2020-01-22 15:11:28 +01:00
parent 2216a14729
commit 77d96976ec
6 changed files with 57 additions and 56 deletions

View File

@@ -20,7 +20,7 @@
- (instancetype)initWithTargetApplication:(NSRunningApplication *)targetApplication entry:(KPKEntry *)entry {
self = [super init];
if(self) {
_entry = entry;
_preferredEntry = entry;
if(!targetApplication) {
_pid = -1;
_windowTitle = @"";