Update footprint editor's board with changed prefs.

Fixes https://gitlab.com/kicad/code/kicad/issues/12678
This commit is contained in:
Jeff Young 2022-11-09 00:30:10 +00:00
parent 056f45cd70
commit 2ada7db282
1 changed files with 2 additions and 0 deletions

View File

@ -1234,6 +1234,8 @@ void FOOTPRINT_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTe
auto cfg = Pgm().GetSettingsManager().GetAppSettings<FOOTPRINT_EDITOR_SETTINGS>();
GetGalDisplayOptions().ReadWindowSettings( cfg->m_Window );
GetBoard()->GetDesignSettings() = cfg->m_DesignSettings;
GetCanvas()->GetView()->UpdateAllLayersColor();
GetCanvas()->GetView()->MarkTargetDirty( KIGFX::TARGET_NONCACHED );
GetCanvas()->ForceRefresh();