From 63b7acc52f2c9eac6fecd8dd78b7a3d0149e4336 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Tue, 16 Aug 2022 23:35:58 -0400 Subject: [PATCH] Update SelectForm.cs --- CreamInstaller/Forms/SelectForm.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/CreamInstaller/Forms/SelectForm.cs b/CreamInstaller/Forms/SelectForm.cs index 2b2b9b2..9594d44 100644 --- a/CreamInstaller/Forms/SelectForm.cs +++ b/CreamInstaller/Forms/SelectForm.cs @@ -325,14 +325,11 @@ internal partial class SelectForm : CustomForm selection.RootDirectory = directory; selection.DllDirectories = dllDirectories; selection.IsEpic = true; - foreach (KeyValuePair pair in entitlements) + foreach (KeyValuePair pair in entitlements.Where(p => p.Value.name == selection.Name)) { - if (pair.Value.name == selection.Name) - { - selection.ProductUrl = "https://www.epicgames.com/store/product/" + pair.Value.product; - selection.IconUrl = pair.Value.icon; - selection.Publisher = pair.Value.developer; - } + selection.ProductUrl = "https://www.epicgames.com/store/product/" + pair.Value.product; + selection.IconUrl = pair.Value.icon; + selection.Publisher = pair.Value.developer; } if (Program.Canceled) return;