GUI: Add defaultBlockMessage configuration

This commit is contained in:
Russell Hancox
2015-08-04 13:52:44 -04:00
parent 4404b5f849
commit 9bc94ca658
3 changed files with 17 additions and 3 deletions

View File

@@ -133,8 +133,11 @@
if ([self.customMessage length] > 0) {
message = self.customMessage;
} else {
message = @"The following application has been blocked from executing<br />"
@"because its trustworthiness cannot be determined.";
message = [[SNTConfigurator configurator] defaultBlockMessage];
if (!message) {
message = @"The following application has been blocked from executing<br />"
@"because its trustworthiness cannot be determined.";
}
}
NSString *fullHTML = [NSString stringWithFormat:@"%@%@%@", htmlHeader, message, htmlFooter];