From 48700fd66ae6da2cad733b73a16bb390a5a8b3cc Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Wed, 15 Feb 2023 08:39:42 +1100 Subject: [PATCH] Settings: dedupe list --- ExtLibs/Utilities/Settings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExtLibs/Utilities/Settings.cs b/ExtLibs/Utilities/Settings.cs index 4e17875364..1600bd8ea3 100644 --- a/ExtLibs/Utilities/Settings.cs +++ b/ExtLibs/Utilities/Settings.cs @@ -172,7 +172,7 @@ public void SetList(string key, IEnumerable list) { if (list == null || list.Count() == 0) return; - config[key] = list.Select(a => System.Net.WebUtility.UrlEncode(a)).Distinct().Aggregate((s, s1) => s + ';' + s1); + config[key] = list.Distinct().Select(a => System.Net.WebUtility.UrlEncode(a)).Distinct().Aggregate((s, s1) => s + ';' + s1); } public void AppendList(string key, string item)