Fix missing pin table visible columns setting

This got missed in the settings merge
This commit is contained in:
Jon Evans 2020-07-07 20:59:55 -04:00
parent 788f31d743
commit 7f1e1a4abb
1 changed files with 5 additions and 5 deletions

View File

@ -73,6 +73,9 @@ LIBEDIT_SETTINGS::LIBEDIT_SETTINGS() : APP_SETTINGS_BASE( "libedit", libeditSche
m_params.emplace_back( new PARAM<wxString>( "edit_component_visible_columns",
&m_EditComponentVisibleColumns, "0 1 2 3 4 5 6 7" ) );
m_params.emplace_back( new PARAM<wxString>( "pin_table_visible_columns",
&m_PinTableVisibleColumns, "0 1 2 3 4 8 9" ) );
m_params.emplace_back(
new PARAM<bool>( "use_eeschema_color_settings", &m_UseEeschemaColorSettings, true ) );
}
@ -80,11 +83,6 @@ LIBEDIT_SETTINGS::LIBEDIT_SETTINGS() : APP_SETTINGS_BASE( "libedit", libeditSche
bool LIBEDIT_SETTINGS::MigrateFromLegacy( wxConfigBase* aCfg )
{
/*
* #define PinTableShownColumnsKey wxT( "PinTableShownColumns" )
"0 1 2 3 4 8 9"
*/
bool ret = APP_SETTINGS_BASE::MigrateFromLegacy( aCfg );
ret &= fromLegacy<int>( aCfg, "DefaultWireWidth", "defaults.line_width" );
@ -102,5 +100,7 @@ bool LIBEDIT_SETTINGS::MigrateFromLegacy( wxConfigBase* aCfg )
ret &= fromLegacyString( aCfg, "LibEditFieldsShownColumns", "edit_component_visible_columns" );
ret &= fromLegacyString( aCfg, "PinTableShownColumns", "pin_table_visible_columns" );
return ret;
}