diff options
author | Jérémie Laval <jeremie.laval@gmail.com> | 2012-12-12 04:36:34 +0400 |
---|---|---|
committer | Jérémie Laval <jeremie.laval@gmail.com> | 2012-12-12 04:37:10 +0400 |
commit | 58c8de9bdc3da4b8b96ab51f86f1a4264fa1ab42 (patch) | |
tree | 0602d50b28fa59f1e160aa1d9de89181eed91e79 | |
parent | e4a6007f5e61340a2c03cc4b79990722106498b5 (diff) |
[macdoc] Warn in the merging question dialog if we are going to be downloading huge content from apple
-rw-r--r-- | AppDelegate.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs index 679a7a7..a45c68c 100644 --- a/AppDelegate.cs +++ b/AppDelegate.cs @@ -254,9 +254,12 @@ namespace macdoc void LaunchDocumentationUpdate (Dictionary<Product, Tuple<bool, bool>> toUpdate) { var informative = "We have detected your " + string.Join (" and ", toUpdate.Keys.Select (ProductUtils.GetFriendlyName)) + - " documentation can be upgraded with Apple documentation." + - Environment.NewLine + Environment.NewLine + - "Would you like to update the documentation now? You can continue to browse the documentation while the update is performed."; + " documentation can be upgraded with Apple documentation."; + // Check if we are going to be downloading stuff + if (toUpdate.Any (kvp => kvp.Value.Item1)) + informative += Environment.NewLine + Environment.NewLine + "Warning: we are going to download documentation from Apple servers which can take a long time depending on your Internet connection."; + informative += Environment.NewLine + Environment.NewLine + "Would you like to update the documentation now?"; + var infoDialog = new NSAlert { AlertStyle = NSAlertStyle.Informational, MessageText = "Documentation update available", |