Skip to content

Commit 752e6ed

Browse files
committed
Exclude duplicate entries entered by the user within OpenFolderAndSelectItems.
1 parent e027a1a commit 752e6ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ILSpy/Util/ShellHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static void OpenFolderAndSelectItems(IEnumerable<string> paths)
9999
if (paths == null)
100100
return;
101101
// Group by containing folder
102-
var files = paths.Where(p => !string.IsNullOrEmpty(p) && File.Exists(p)).ToList();
102+
var files = paths.Distinct(StringComparer.OrdinalIgnoreCase).Where(p => !string.IsNullOrEmpty(p) && File.Exists(p)).ToList();
103103
if (files.Count == 0)
104104
return;
105105

0 commit comments

Comments
 (0)