Redraw all objects after Preferences in case colours changed.

Fixes https://gitlab.com/kicad/code/kicad/issues/6341
This commit is contained in:
Jeff Young 2020-11-11 17:47:31 +00:00
parent 787bd5109e
commit 1e44172d40
2 changed files with 1 additions and 3 deletions

View File

@ -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();

View File

@ -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();