From 752e6ed9c049e95923581a3d16d997d5e36e6be5 Mon Sep 17 00:00:00 2001 From: sonyps5201314 Date: Tue, 25 Nov 2025 15:44:33 +0800 Subject: [PATCH] Exclude duplicate entries entered by the user within `OpenFolderAndSelectItems`. --- ILSpy/Util/ShellHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILSpy/Util/ShellHelper.cs b/ILSpy/Util/ShellHelper.cs index 24c877373..7bc26d92a 100644 --- a/ILSpy/Util/ShellHelper.cs +++ b/ILSpy/Util/ShellHelper.cs @@ -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;