Enable the accelerated canvas on the first pcbnew run if requested
Fixes: lp:1769143 * https://bugs.launchpad.net/kicad/+bug/1769143
This commit is contained in:
parent
d3c41dd247
commit
8910894fab
|
@ -487,30 +487,25 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
auto handler = GetEventHandler();
|
auto handler = GetEventHandler();
|
||||||
handler->ProcessEvent( evt );
|
handler->ProcessEvent( evt );
|
||||||
}
|
}
|
||||||
else
|
else if( canvasType == EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE )
|
||||||
{
|
{
|
||||||
// If they were on legacy, switch them to Cairo
|
// If they were on legacy, switch them to Cairo
|
||||||
|
wxCommandEvent evt( wxEVT_MENU, ID_MENU_CANVAS_CAIRO );
|
||||||
if( canvasType == EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE )
|
auto handler = GetEventHandler();
|
||||||
{
|
handler->ProcessEvent( evt );
|
||||||
wxCommandEvent evt( wxEVT_MENU, ID_MENU_CANVAS_CAIRO );
|
|
||||||
auto handler = GetEventHandler();
|
|
||||||
handler->ProcessEvent( evt );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_firstRunDialogSetting = 1;
|
m_firstRunDialogSetting = 1;
|
||||||
SaveSettings( config() );
|
SaveSettings( config() );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
// Canvas may have been updated by the dialog
|
|
||||||
canvasType = loadCanvasTypeSetting();
|
|
||||||
|
|
||||||
if( canvasType != EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE )
|
|
||||||
{
|
{
|
||||||
if( GetGalCanvas()->SwitchBackend( canvasType ) )
|
if( canvasType != EDA_DRAW_PANEL_GAL::GAL_TYPE_NONE )
|
||||||
UseGalCanvas( true );
|
{
|
||||||
|
if( GetGalCanvas()->SwitchBackend( canvasType ) )
|
||||||
|
UseGalCanvas( true );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enableGALSpecificMenus();
|
enableGALSpecificMenus();
|
||||||
|
|
Loading…
Reference in New Issue