mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 04:19:32 +00:00
Remove alert pop-up in test scenarios to prevent main thread stalls
This commit is contained in:
@@ -143,6 +143,11 @@ static MPAutotypeDaemon *_sharedInstance;
|
||||
if(!self.enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(NSApplication.sharedApplication.isRunningTests) {
|
||||
return; // Do not display pop-up when running tests
|
||||
}
|
||||
|
||||
BOOL hideAlert = NO;
|
||||
if(nil != [NSUserDefaults.standardUserDefaults objectForKey:kMPSettingsKeyAutotypeHideAccessibiltyWarning]) {
|
||||
hideAlert = [NSUserDefaults.standardUserDefaults boolForKey:kMPSettingsKeyAutotypeHideAccessibiltyWarning];
|
||||
|
||||
Reference in New Issue
Block a user