Synchronize flip board checkbox

Fixes https://gitlab.com/kicad/code/kicad/-/issues/5224
This commit is contained in:
Jon Evans 2020-08-17 21:48:11 -04:00
parent 2764a41d96
commit 3c66f932bf
2 changed files with 3 additions and 0 deletions

View File

@ -1573,6 +1573,7 @@ int PCB_EDITOR_CONTROL::FlipPcbView( const TOOL_EVENT& aEvent )
view()->SetMirror( !view()->IsMirroredX(), false );
view()->RecacheAllItems();
frame()->Refresh();
frame()->OnDisplayOptionsChanged();
return 0;
}

View File

@ -428,6 +428,8 @@ void APPEARANCE_CONTROLS::UpdateDisplayOptions()
wxASSERT( m_objectSettingsMap.count( LAYER_RATSNEST ) );
APPEARANCE_SETTING* ratsnest = m_objectSettingsMap.at( LAYER_RATSNEST );
ratsnest->ctl_visibility->SetValue( options.m_ShowGlobalRatsnest );
m_cbFlipBoard->SetValue( m_frame->GetCanvas()->GetView()->IsMirroredX() );
}