Show selection before opening menu.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15922
This commit is contained in:
parent
141b953d12
commit
db46b6f925
|
@ -188,6 +188,9 @@ int GERBVIEW_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
m_selection.SetIsHover( true );
|
||||
}
|
||||
|
||||
// Show selection before opening menu
|
||||
m_frame->GetCanvas()->ForceRefresh();
|
||||
|
||||
m_menu.ShowContextMenu( m_selection );
|
||||
}
|
||||
else if( evt->IsDblClick( BUT_MIDDLE ) )
|
||||
|
|
|
@ -127,6 +127,9 @@ int PL_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
|
|||
m_selection.SetIsHover( true );
|
||||
}
|
||||
|
||||
// Show selection before opening menu
|
||||
m_frame->GetCanvas()->ForceRefresh();
|
||||
|
||||
if( !selectionCancelled )
|
||||
m_menu.ShowContextMenu( m_selection );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue