Movde check for autotype back in the app launch to prevent it from being hidden unter other windows

This commit is contained in:
Michael Starke
2018-11-08 13:46:06 +01:00
parent c12cc7a4be
commit 7fe0689651
2 changed files with 4 additions and 1 deletions

View File

@@ -330,6 +330,10 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi
if(showWelcomeScreen) {
[self showWelcomeWindow];
}
/* run check for accessibilty after the windowserver should have presented the UI */
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[MPAutotypeDaemon.defaultDaemon checkForAccessibiltyPermissions];
});
}
@end

View File

@@ -96,7 +96,6 @@ static MPAutotypeDaemon *_sharedInstance;
name:NSWorkspaceDidDeactivateApplicationNotification
object:nil];
}
[self checkForAccessibiltyPermissions];
return self;
}