Redraw canvas after preferences. (Needed for grid changes, etc.)
Fixes https://gitlab.com/kicad/code/kicad/issues/6433
This commit is contained in:
parent
056ff36b4b
commit
9922b7b738
|
@ -413,6 +413,9 @@ void SCH_BASE_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
|
||||||
|
|
||||||
EESCHEMA_SETTINGS* cfg = Pgm().GetSettingsManager().GetAppSettings<EESCHEMA_SETTINGS>();
|
EESCHEMA_SETTINGS* cfg = Pgm().GetSettingsManager().GetAppSettings<EESCHEMA_SETTINGS>();
|
||||||
m_colorSettings = Pgm().GetSettingsManager().GetColorSettings( cfg->m_ColorTheme );
|
m_colorSettings = Pgm().GetSettingsManager().GetColorSettings( cfg->m_ColorTheme );
|
||||||
|
|
||||||
|
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
|
||||||
|
GetCanvas()->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1378,9 +1378,6 @@ void SCH_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
|
||||||
|
|
||||||
ShowAllIntersheetRefs( settings.m_IntersheetRefsShow );
|
ShowAllIntersheetRefs( settings.m_IntersheetRefsShow );
|
||||||
|
|
||||||
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
|
|
||||||
GetCanvas()->Refresh();
|
|
||||||
|
|
||||||
RecreateToolbars();
|
RecreateToolbars();
|
||||||
Layout();
|
Layout();
|
||||||
SendSizeEvent();
|
SendSizeEvent();
|
||||||
|
|
Loading…
Reference in New Issue