Update SoftwareList with new fields

This commit is contained in:
Matt Nadareski
2022-11-03 11:44:29 -07:00
parent b0dba93134
commit 7e3c04e8a2
6 changed files with 26 additions and 2 deletions

View File

@@ -1060,6 +1060,9 @@ namespace SabreTools.Filtering
/// <param name="datItemFields">List of fields representing what should be updated</param>
private static void ReplaceFields(SoftwareList softwareList, SoftwareList newItem, List<DatItemField> datItemFields)
{
if (datItemFields.Contains(DatItemField.Tag))
softwareList.Tag = newItem.Tag;
if (datItemFields.Contains(DatItemField.SoftwareListStatus))
softwareList.Status = newItem.Status;