pcbnew: Cleanup context menu ordering
This commit is contained in:
parent
da4fe27447
commit
cbea5149cb
|
@ -290,8 +290,8 @@ bool EDIT_TOOL::Init()
|
||||||
auto& ctxMenu = m_menu.GetMenu();
|
auto& ctxMenu = m_menu.GetMenu();
|
||||||
|
|
||||||
// "Cancel" goes at the top of the context menu when a tool is active
|
// "Cancel" goes at the top of the context menu when a tool is active
|
||||||
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1000 );
|
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1 );
|
||||||
ctxMenu.AddSeparator( activeToolCondition, 1000 );
|
ctxMenu.AddSeparator( activeToolCondition, 1 );
|
||||||
|
|
||||||
if( frame )
|
if( frame )
|
||||||
m_menu.AddStandardSubMenus( frame );
|
m_menu.AddStandardSubMenus( frame );
|
||||||
|
|
|
@ -292,8 +292,8 @@ bool PCB_EDITOR_CONTROL::Init()
|
||||||
auto& ctxMenu = m_menu.GetMenu();
|
auto& ctxMenu = m_menu.GetMenu();
|
||||||
|
|
||||||
// "Cancel" goes at the top of the context menu when a tool is active
|
// "Cancel" goes at the top of the context menu when a tool is active
|
||||||
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1000 );
|
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1 );
|
||||||
ctxMenu.AddSeparator( activeToolCondition, 1000 );
|
ctxMenu.AddSeparator( activeToolCondition, 1 );
|
||||||
|
|
||||||
// "Get and Place Footprint" should be available for Place Footprint tool
|
// "Get and Place Footprint" should be available for Place Footprint tool
|
||||||
ctxMenu.AddItem( PCB_ACTIONS::findMove, placeModuleCondition, 1000 );
|
ctxMenu.AddItem( PCB_ACTIONS::findMove, placeModuleCondition, 1000 );
|
||||||
|
|
Loading…
Reference in New Issue