Skip to content

Commit

Permalink
Settings: dedupe list
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Feb 14, 2023
1 parent 5851582 commit 48700fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExtLibs/Utilities/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void SetList(string key, IEnumerable<string> 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)
Expand Down

0 comments on commit 48700fd

Please sign in to comment.