symbol fields table: remember includeExcludedFromBOm correctly

This commit is contained in:
Mike Williams 2024-05-29 08:35:10 -04:00
parent a8daa38e83
commit cc350cf279
2 changed files with 4 additions and 1 deletions

View File

@ -1510,7 +1510,9 @@ void DIALOG_SYMBOL_FIELDS_TABLE::syncBomPresetSelection()
if( !( preset.sortAsc == current.sortAsc
&& preset.filterString == current.filterString
&& preset.groupSymbols == current.groupSymbols
&& preset.excludeDNP == current.excludeDNP ) )
&& preset.excludeDNP == current.excludeDNP
&& preset.includeExcludedFromBOM
== current.includeExcludedFromBOM ) )
{
return false;
}

View File

@ -871,6 +871,7 @@ BOM_PRESET FIELDS_EDITOR_GRID_DATA_MODEL::GetBomSettings()
current.filterString = GetFilter();
current.groupSymbols = GetGroupingEnabled();
current.excludeDNP = GetExcludeDNP();
current.includeExcludedFromBOM = GetIncludeExcludedFromBOM();
return current;
}