Redraw canvas after preferences. (Needed for grid changes, etc.)

Fixes https://gitlab.com/kicad/code/kicad/issues/6433
This commit is contained in:
Jeff Young 2020-11-29 02:04:34 +00:00
parent 056ff36b4b
commit 9922b7b738
2 changed files with 3 additions and 3 deletions

View File

@ -413,6 +413,9 @@ void SCH_BASE_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
EESCHEMA_SETTINGS* cfg = Pgm().GetSettingsManager().GetAppSettings<EESCHEMA_SETTINGS>();
m_colorSettings = Pgm().GetSettingsManager().GetColorSettings( cfg->m_ColorTheme );
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
GetCanvas()->Refresh();
}

View File

@ -1378,9 +1378,6 @@ void SCH_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
ShowAllIntersheetRefs( settings.m_IntersheetRefsShow );
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
GetCanvas()->Refresh();
RecreateToolbars();
Layout();
SendSizeEvent();