Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Laval <jeremie.laval@gmail.com>2012-12-12 04:36:34 +0400
committerJérémie Laval <jeremie.laval@gmail.com>2012-12-12 04:37:10 +0400
commit58c8de9bdc3da4b8b96ab51f86f1a4264fa1ab42 (patch)
tree0602d50b28fa59f1e160aa1d9de89181eed91e79
parente4a6007f5e61340a2c03cc4b79990722106498b5 (diff)
[macdoc] Warn in the merging question dialog if we are going to be downloading huge content from apple
-rw-r--r--AppDelegate.cs9
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",