fix another insignificant oversight

This commit is contained in:
pointfeev 2022-03-06 21:16:41 -05:00
parent 6ef3edf66a
commit d8afcac1c3
2 changed files with 3 additions and 4 deletions

View file

@ -5,7 +5,7 @@
<UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>3.2.0.2</Version>
<Version>3.2.0.3</Version>
<PackageIcon>Resources\ini.ico</PackageIcon>
<PackageIconUrl />
<Description />

View file

@ -205,12 +205,11 @@ internal partial class SelectForm : CustomForm
await task;
}
name = appData.name ?? name;
selection ??= new();
selection.Enabled = allCheckBox.Checked || selection.SelectedDlc.Any() || selection.ExtraDlc.Any();
selection.Usable = true;
selection.Id = appId;
selection.Name = name;
selection.Name = appData.name ?? name;
selection.RootDirectory = directory;
selection.DllDirectories = dllDirectories;
selection.IsSteam = true;
@ -225,7 +224,7 @@ internal partial class SelectForm : CustomForm
if (Program.Canceled) return;
TreeNode programNode = TreeNodes.Find(s => s.Name == appId) ?? new();
programNode.Name = appId;
programNode.Text = name;
programNode.Text = appData.name ?? name;
programNode.Checked = selection.Enabled;
programNode.Remove();
selectionTreeView.Nodes.Add(programNode);