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 );
|
EDA_DRAW_FRAME::CommonSettingsChanged( aEnvVarsChanged, aTextVarsChanged );
|
||||||
|
|
||||||
GetCanvas()->GetView()->GetPainter()->GetSettings()->LoadColors( GetColorSettings() );
|
GetCanvas()->GetView()->GetPainter()->GetSettings()->LoadColors( GetColorSettings() );
|
||||||
|
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
|
||||||
|
|
||||||
RecreateToolbars();
|
RecreateToolbars();
|
||||||
|
|
||||||
|
|
|
@ -1583,9 +1583,6 @@ void PCB_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
|
||||||
|
|
||||||
GetAppearancePanel()->OnColorThemeChanged();
|
GetAppearancePanel()->OnColorThemeChanged();
|
||||||
|
|
||||||
if( aTextVarsChanged )
|
|
||||||
GetCanvas()->GetView()->UpdateAllItems( KIGFX::ALL );
|
|
||||||
|
|
||||||
// Update the environment variables in the Python interpreter
|
// Update the environment variables in the Python interpreter
|
||||||
if( aEnvVarsChanged )
|
if( aEnvVarsChanged )
|
||||||
PythonSyncEnvironmentVariables();
|
PythonSyncEnvironmentVariables();
|
||||||
|
|
Loading…
Reference in New Issue