We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b4d19 commit ed41158Copy full SHA for ed41158
src/Files.App/Services/Windows/WindowsIniService.cs
@@ -58,8 +58,10 @@ public List<IniSectionDataItem> GetData(string filePath)
58
.Select(line => line.Split('='))
59
// Validate
60
.Where(parts => parts.Length == 2)
61
+ // Group by key to avoid duplicates
62
+ .GroupBy(parts => parts[0].Trim())
63
// Gather as dictionary
- .ToDictionary(parts => parts[0].Trim(), parts => parts[1].Trim());
64
+ .ToDictionary(partsGroup => partsGroup.Key, partsGroup => partsGroup.Last()[1].Trim());
65
66
dataItems.Add(new()
67
{
0 commit comments