Browse Source

Exclude duplicate entries entered by the user within `OpenFolderAndSelectItems`.

pull/3619/head
sonyps5201314 1 month ago
parent
commit
752e6ed9c0
  1. 2
      ILSpy/Util/ShellHelper.cs

2
ILSpy/Util/ShellHelper.cs

@ -99,7 +99,7 @@ namespace ICSharpCode.ILSpy.Util @@ -99,7 +99,7 @@ namespace ICSharpCode.ILSpy.Util
if (paths == null)
return;
// Group by containing folder
var files = paths.Where(p => !string.IsNullOrEmpty(p) && File.Exists(p)).ToList();
var files = paths.Distinct(StringComparer.OrdinalIgnoreCase).Where(p => !string.IsNullOrEmpty(p) && File.Exists(p)).ToList();
if (files.Count == 0)
return;

Loading…
Cancel
Save