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>2013-05-09 00:46:02 +0400
committerJérémie Laval <jeremie.laval@gmail.com>2013-05-09 00:46:02 +0400
commitedbccbd136c066e52b36cb8e26dce7cb2eb385bd (patch)
treef65a3f7c2a81fc8651d49a479261c07c2ebcf1c5
parentb7e4bc1088a2fc9f73332a0d1239bfa62d748de7 (diff)
[macdoc] Only show in the dialog the products that are going to be updated
-rw-r--r--AppDelegate.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs
index b6cedb7..3b33091 100644
--- a/AppDelegate.cs
+++ b/AppDelegate.cs
@@ -248,8 +248,8 @@ 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.";
+ var outdatedProducts = string.Join (" and ", toUpdate.Where (kvp => kvp.Value.Item1 || kvp.Value.Item2).Select (kvp => ProductUtils.GetFriendlyName (kvp.Key)));
+ var informative = "We have detected your " + outdatedProducts + " 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.";