Redraw all objects after Preferences in case colours changed.
Fixes https://gitlab.com/kicad/code/kicad/issues/6341
This commit is contained in:
parent
787bd5109e
commit
1e44172d40
|
@ -698,6 +698,7 @@ void PCB_BASE_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
|
|||
EDA_DRAW_FRAME::CommonSettingsChanged( aEnvVarsChanged, aTextVarsChanged );
|
||||
|
||||
GetCanvas()->GetView()->GetPainter()->GetSettings()->LoadColors( GetColorSettings() );
|
||||
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
|
||||
|
||||
RecreateToolbars();
|
||||
|
||||
|
|
|
@ -1583,9 +1583,6 @@ void PCB_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
|
|||
|
||||
GetAppearancePanel()->OnColorThemeChanged();
|
||||
|
||||
if( aTextVarsChanged )
|
||||
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
|
||||
|
||||
// Update the environment variables in the Python interpreter
|
||||
if( aEnvVarsChanged )
|
||||
PythonSyncEnvironmentVariables();
|
||||
|
|
Loading…
Reference in New Issue