From 03431b927332aa60fe55c8f14d06a7a24470f125 Mon Sep 17 00:00:00 2001 From: Eric Zimmerman Date: Mon, 16 Oct 2023 14:40:36 -0400 Subject: [PATCH] 1.2.6 --- JumpList.Test/JumpList.Test.csproj | 6 +++--- JumpList/AppIDList.cs | 13 ++++++------- JumpList/JumpList.csproj | 5 ++--- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/JumpList.Test/JumpList.Test.csproj b/JumpList.Test/JumpList.Test.csproj index a0eed07..cbe3589 100644 --- a/JumpList.Test/JumpList.Test.csproj +++ b/JumpList.Test/JumpList.Test.csproj @@ -16,9 +16,9 @@ - - - + + + \ No newline at end of file diff --git a/JumpList/AppIDList.cs b/JumpList/AppIDList.cs index c953b06..b6f81d1 100644 --- a/JumpList/AppIDList.cs +++ b/JumpList/AppIDList.cs @@ -17,12 +17,9 @@ public AppIdList() string[] stringSeparators = {"\r\n"}; var lines = Resources.AppIDs.Split(stringSeparators, StringSplitOptions.None); - - - _appIDs = new Dictionary(); - - + _appIDs = new Dictionary(); + IterateLines(lines); } @@ -32,6 +29,8 @@ public string GetDescriptionFromId(string id) var intId = id.ToLowerInvariant(); + _appIDs.TryGetValue(intId, out desc); + if (_appIDs.ContainsKey(intId)) { desc = _appIDs[id]; @@ -55,9 +54,9 @@ private int IterateLines(IEnumerable lines) continue; } - var id = segs[0].Trim().ToLowerInvariant(); + var id = segs[0].Trim().ToLowerInvariant().TrimStart('"').TrimEnd('"'); var desc = segs[1].Trim(); - + if (_appIDs.ContainsKey(id) == false) { _appIDs.Add(id, desc); diff --git a/JumpList/JumpList.csproj b/JumpList/JumpList.csproj index d16f1db..46d6401 100644 --- a/JumpList/JumpList.csproj +++ b/JumpList/JumpList.csproj @@ -10,11 +10,10 @@ Eric Zimmerman https://github.com/EricZimmerman/jumplist https://github.com/EricZimmerman/jumplist - 1.2.5 + 1.2.6 MIT 10 - jumplist, lnk, link README.md icon.png @@ -37,4 +36,4 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + \ No newline at end of file