Symbol Fields Table: allow hiding references

If that's what the user wants, let them.
This commit is contained in:
Mike Williams 2023-02-07 13:08:27 -05:00
parent 9b942ee8f3
commit f98e36efa9
1 changed files with 0 additions and 8 deletions

View File

@ -1355,14 +1355,6 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled( wxDataViewEvent& event )
{
bool value = m_fieldsCtrl->GetToggleValue( row, col );
if( row == REFERENCE_FIELD && !value )
{
DisplayError( this, _( "The Reference column cannot be hidden." ) );
value = true;
m_fieldsCtrl->SetToggleValue( value, row, col );
}
std::string fieldName( m_fieldsCtrl->GetTextValue( row, FIELD_NAME_COLUMN ).ToUTF8() );
cfg->m_FieldEditorPanel.fields_show[fieldName] = value;