pcbnew: Cleanup context menu ordering

This commit is contained in:
Ian McInerney 2019-06-02 16:37:24 +01:00 committed by Jeff Young
parent da4fe27447
commit cbea5149cb
2 changed files with 4 additions and 4 deletions

View File

@ -290,8 +290,8 @@ bool EDIT_TOOL::Init()
auto& ctxMenu = m_menu.GetMenu();
// "Cancel" goes at the top of the context menu when a tool is active
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1000 );
ctxMenu.AddSeparator( activeToolCondition, 1000 );
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1 );
ctxMenu.AddSeparator( activeToolCondition, 1 );
if( frame )
m_menu.AddStandardSubMenus( frame );

View File

@ -292,8 +292,8 @@ bool PCB_EDITOR_CONTROL::Init()
auto& ctxMenu = m_menu.GetMenu();
// "Cancel" goes at the top of the context menu when a tool is active
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1000 );
ctxMenu.AddSeparator( activeToolCondition, 1000 );
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1 );
ctxMenu.AddSeparator( activeToolCondition, 1 );
// "Get and Place Footprint" should be available for Place Footprint tool
ctxMenu.AddItem( PCB_ACTIONS::findMove, placeModuleCondition, 1000 );