Eeschema: ensure the actual canvas type is saved in config.

The saved type was not updated after switching the canvas type from Preferences.
This commit is contained in:
jean-pierre charras 2021-05-17 11:44:17 +02:00
parent 224d258474
commit cda9650380
1 changed files with 3 additions and 0 deletions

View File

@ -311,6 +311,9 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
SCH_EDIT_FRAME::~SCH_EDIT_FRAME()
{
// Ensure m_canvasType is up to date, to save it in config
m_canvasType = GetCanvas()->GetBackend();
// Shutdown all running tools
if( m_toolManager )
{