Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
[macdoc] There may be several help sources with the same prefix, filt…
Browse files Browse the repository at this point in the history
…er unique name
  • Loading branch information
garuma committed May 8, 2013
1 parent 233a346 commit 7a7a9b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/macdoc/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public override void FinishedLaunching (NSObject notification)
}).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,
Expand Down

0 comments on commit 7a7a9b6

Please sign in to comment.