v3.1.0.1
- Fixed a bug where Paradox Launcher wasn't being ticked as enabled when selected
This commit is contained in:
parent
7cae752787
commit
5b40924734
3 changed files with 10 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
<UseWindowsForms>True</UseWindowsForms>
|
||||
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
|
||||
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
|
||||
<Version>3.1.0.0</Version>
|
||||
<Version>3.1.0.1</Version>
|
||||
<PackageIcon>Resources\ini.ico</PackageIcon>
|
||||
<PackageIconUrl />
|
||||
<Description />
|
||||
|
|
|
@ -81,7 +81,7 @@ internal class ProgramSelection
|
|||
break;
|
||||
}
|
||||
}
|
||||
Enabled = SelectedDlc.Any();
|
||||
Enabled = SelectedDlc.Any() || ExtraDlc.Any();
|
||||
}
|
||||
|
||||
internal ProgramSelection() => All.Add(this);
|
||||
|
|
|
@ -196,7 +196,7 @@ internal partial class SelectForm : CustomForm
|
|||
}
|
||||
|
||||
selection ??= new();
|
||||
selection.Enabled = allCheckBox.Checked || selection.SelectedDlc.Any();
|
||||
selection.Enabled = allCheckBox.Checked || selection.SelectedDlc.Any() || selection.ExtraDlc.Any();
|
||||
selection.Usable = true;
|
||||
selection.Id = appId;
|
||||
selection.Name = name;
|
||||
|
@ -294,7 +294,7 @@ internal partial class SelectForm : CustomForm
|
|||
}
|
||||
|
||||
selection ??= new();
|
||||
selection.Enabled = allCheckBox.Checked || selection.SelectedDlc.Any();
|
||||
selection.Enabled = allCheckBox.Checked || selection.SelectedDlc.Any() || selection.ExtraDlc.Any();
|
||||
selection.Usable = true;
|
||||
selection.Id = @namespace;
|
||||
selection.Name = name;
|
||||
|
@ -472,6 +472,12 @@ internal partial class SelectForm : CustomForm
|
|||
if (selection is not null)
|
||||
selection.ToggleDlc(node.Name, node.Checked);
|
||||
}
|
||||
else
|
||||
{
|
||||
ProgramSelection selection = ProgramSelection.FromId(node.Name);
|
||||
if (selection is not null)
|
||||
selection.Enabled = node.Checked;
|
||||
}
|
||||
}
|
||||
|
||||
internal List<TreeNode> TreeNodes => GatherTreeNodes(selectionTreeView.Nodes);
|
||||
|
|
Loading…
Reference in a new issue