Fix null exception
This commit is contained in:
parent
0bd108507c
commit
3a2d2f9e01
1 changed files with 1 additions and 1 deletions
|
@ -978,7 +978,7 @@ internal sealed partial class SelectForm : CustomForm
|
||||||
List<(Platform platform, string gameId, string dlcId)> choices = ProgramData.ReadDlcChoices().ToList();
|
List<(Platform platform, string gameId, string dlcId)> choices = ProgramData.ReadDlcChoices().ToList();
|
||||||
foreach (SelectionDLC dlc in SelectionDLC.All.Keys)
|
foreach (SelectionDLC dlc in SelectionDLC.All.Keys)
|
||||||
{
|
{
|
||||||
dlc.Enabled = choices.Any(c => c.platform == dlc.Selection.Platform && c.gameId == dlc.Selection.Id && c.dlcId == dlc.Id)
|
dlc.Enabled = choices.Any(c => c.platform == dlc.Selection?.Platform && c.gameId == dlc.Selection?.Id && c.dlcId == dlc.Id)
|
||||||
? dlc.Name == "Unknown"
|
? dlc.Name == "Unknown"
|
||||||
: dlc.Name != "Unknown";
|
: dlc.Name != "Unknown";
|
||||||
OnTreeViewNodeCheckedChanged(null, new(dlc.TreeNode, TreeViewAction.ByMouse));
|
OnTreeViewNodeCheckedChanged(null, new(dlc.TreeNode, TreeViewAction.ByMouse));
|
||||||
|
|
Loading…
Reference in a new issue