diff --git a/MacPass/MPAutotypeDaemon.m b/MacPass/MPAutotypeDaemon.m index 252cc5df..01b066ec 100644 --- a/MacPass/MPAutotypeDaemon.m +++ b/MacPass/MPAutotypeDaemon.m @@ -152,7 +152,7 @@ static MPAutotypeDaemon *_sharedInstance; } - (void)_didPressHotKey { - [self _updateTargetInformationForFrontMostApplication]; + [self _updateTargeInformationForApplication:NSWorkspace.sharedWorkspace.frontmostApplication]; [self _performAutotypeForEntry:nil]; } @@ -427,10 +427,6 @@ static MPAutotypeDaemon *_sharedInstance; return NO; } -- (void)_updateTargetInformationForFrontMostApplication { - [self _updateTargeInformationForApplication:NSWorkspace.sharedWorkspace.frontmostApplication]; -} - - (void)_updateTargeInformationForApplication:(NSRunningApplication *)application { if(!application) { self.targetPID = -1;