Jason Harris  committed b909c57

- Fix issue 47. If the user has set WarnAboutBadMercurialConfiguration to false then
ignore startup warnings.

  • Participants
  • Parent commits a1921f7

Comments (0)

Files changed (1)

File Classes/Application/AppController.m

 	NSArray* versionArgs = [NSArray arrayWithObject:@"version"];
 	NSString* hgBinary = executableLocationHG();
 	ExecutionResult* results = [TaskExecutions synchronouslyExecute:hgBinary withArgs:versionArgs onTask:nil];
-	if ([results hasWarnings])
+	if ([results hasWarnings] && WarnAboutBadMercurialConfigurationFromDefaults())
 		NSString* mainMessage = [NSString stringWithFormat:@"The version of Mercurial included with MacHg is producing the following warnings:\n\n%@\n\nMacHg might not function as intended. To resolve this check your configuration settings in your .hgrc file.", results.errStr];
 		RunCriticalAlertPanelWithSuppression(@"Mercurial Warnings", mainMessage, @"OK", nil, MHGWarnAboutBadMercurialConfiguration);