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:45:27 +0400
committerJérémie Laval <jeremie.laval@gmail.com>2013-05-09 00:45:27 +0400
commitb7e4bc1088a2fc9f73332a0d1239bfa62d748de7 (patch)
tree9b9b90b99ae7b097353b1ff72cd070979a67a2dc
parentc45dd682804729f6b68781183d078ec0c7d14377 (diff)
[macdoc] There may be several help sources with the same prefix, filter unique name
-rw-r--r--AppDelegate.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/AppDelegate.cs b/AppDelegate.cs
index 9b88c6d..b6cedb7 100644
--- a/AppDelegate.cs
+++ b/AppDelegate.cs
@@ -132,7 +132,7 @@ namespace macdoc
}).ContinueWith (t => Logger.LogError ("Error while creating indexes", t.Exception), TaskContinuationOptions.OnlyOnFaulted);
// Check if there is a MonoTouch/MonoMac documentation installed and launch accordingly
- var products = Root.HelpSources.Where (hs => hs != null && hs.Name != null).ToProducts ();
+ var products = Root.HelpSources.Where (hs => hs != null && hs.Name != null).ToProducts ().Distinct ().ToArray ();
if (products.Where (p => File.Exists (ProductUtils.GetMergeToolForProduct (p))).Any ()) {
Task.Factory.StartNew (() => {
return products.ToDictionary (p => p,