From b7e4bc1088a2fc9f73332a0d1239bfa62d748de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Laval?= Date: Wed, 8 May 2013 16:45:27 -0400 Subject: [macdoc] There may be several help sources with the same prefix, filter unique name --- AppDelegate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3