From 0fe30cd966dfe566f33a271b5adcd36880c25cb4 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Fri, 26 Aug 2022 22:51:48 -0400 Subject: [PATCH] v4.0.2.1 - Unknown DLC are now disabled by default, and will not be affected by the "All" checkbox --- CreamInstaller/CreamInstaller.csproj | 2 +- CreamInstaller/Forms/SelectForm.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index 17a5239..5cd82c8 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -5,7 +5,7 @@ True Resources\ini.ico true - 4.0.2.0 + 4.0.2.1 Resources\ini.ico LICENSE 2021, pointfeev (https://github.com/pointfeev) diff --git a/CreamInstaller/Forms/SelectForm.cs b/CreamInstaller/Forms/SelectForm.cs index e88cc5d..a3a1b29 100644 --- a/CreamInstaller/Forms/SelectForm.cs +++ b/CreamInstaller/Forms/SelectForm.cs @@ -264,7 +264,7 @@ internal partial class SelectForm : CustomForm string appId = pair.Key; (DlcType type, string name, string icon) dlcApp = pair.Value; selection.AllDlc[appId] = dlcApp; - if (allCheckBox.Checked) selection.SelectedDlc[appId] = dlcApp; + if (allCheckBox.Checked && dlcApp.name != "Unknown") selection.SelectedDlc[appId] = dlcApp; TreeNode dlcNode = treeNodes.Find(s => s.Tag is Platform.Steam && s.Name == appId) ?? new(); dlcNode.Tag = selection.Platform; dlcNode.Name = appId; @@ -583,6 +583,7 @@ internal partial class SelectForm : CustomForm private static void SyncNodeDescendants(TreeNode node) => node.Nodes.Cast().ToList().ForEach(childNode => { + if (childNode.Text == "Unknown") return; childNode.Checked = node.Checked; SyncNode(childNode); SyncNodeDescendants(childNode);