Skip to content

Commit

Permalink
Duplicate modules fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Apr 19, 2024
1 parent 09774a2 commit a8c1475
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected static IEnumerable<ModuleInfoExtended> GetLauncherFeatures() =>
/// <summary>
/// Internal<br/>
/// </summary>
protected internal IReadOnlyList<ModuleInfoExtendedWithMetadata> GetModules() => _modules ??= ReloadModules().ToList();
protected internal IReadOnlyList<ModuleInfoExtendedWithMetadata> GetModules() => _modules ??= ReloadModules().GroupBy(x => x.Id).Select(x => x.First()).ToList();

/// <summary>
/// Internal<br/>
Expand Down Expand Up @@ -62,5 +62,4 @@ protected virtual IEnumerable<ModuleInfoExtendedWithMetadata> ReloadModules()
/// Internal<br/>
/// </summary>
protected internal IEnumerable<string> GetModulePaths() => _providers.SelectMany(provider => provider.GetModulePaths());

}

0 comments on commit a8c1475

Please sign in to comment.