Restore "Flip Board" checkbox state when switching canvases

Fixes: lp:1733936
* https://bugs.launchpad.net/kicad/+bug/1733936
This commit is contained in:
Jon Evans 2017-11-29 20:58:47 -05:00 committed by Maciej Suminski
parent a74bad1630
commit 7860b0c4fe
1 changed files with 4 additions and 0 deletions

View File

@ -766,6 +766,10 @@ void PCB_EDIT_FRAME::enableGALSpecificMenus()
if( GetMenuBar()->FindItem( id_list[ii] ) ) if( GetMenuBar()->FindItem( id_list[ii] ) )
GetMenuBar()->FindItem( id_list[ii] )->Enable( enbl ); GetMenuBar()->FindItem( id_list[ii] )->Enable( enbl );
} }
// Update settings for GAL menus
auto view = GetGalCanvas()->GetView();
GetMenuBar()->FindItem( ID_MENU_PCB_FLIP_VIEW )->Check( view->IsMirroredX() );
} }
} }