mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 11:09:50 +00:00
Disable plugin alert when running tests
This commit is contained in:
@@ -282,7 +282,7 @@ NSString *const MPPluginHostPluginBundleIdentifiyerKey = @"MPPluginHostPluginBun
|
||||
}
|
||||
}
|
||||
if(incompatiblePlugins.count > 0) {
|
||||
BOOL hideAlert = NO;
|
||||
BOOL hideAlert = NSApplication.sharedApplication.isRunningTests ? YES : NO;
|
||||
if(nil != [NSUserDefaults.standardUserDefaults objectForKey:kMPSettingsKeyHideIncopatiblePluginsWarning]) {
|
||||
hideAlert = [NSUserDefaults.standardUserDefaults boolForKey:kMPSettingsKeyHideIncopatiblePluginsWarning];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user