Repair over-zealous application of grid origin dialog.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15537
This commit is contained in:
parent
6f1a41f810
commit
d7a3c35f56
|
@ -177,7 +177,6 @@ void SYMBOL_EDIT_FRAME::ReCreateOptToolbar()
|
|||
EE_SELECTION_TOOL* selTool = m_toolManager->GetTool<EE_SELECTION_TOOL>();
|
||||
std::unique_ptr<ACTION_MENU> gridMenu = std::make_unique<ACTION_MENU>( false, selTool );
|
||||
gridMenu->Add( ACTIONS::gridProperties );
|
||||
gridMenu->Add( ACTIONS::gridOrigin );
|
||||
m_optionsToolBar->AddToolContextMenu( ACTIONS::toggleGrid, std::move( gridMenu ) );
|
||||
|
||||
m_optionsToolBar->Realize();
|
||||
|
|
|
@ -223,7 +223,6 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
|
|||
EE_SELECTION_TOOL* selTool = m_toolManager->GetTool<EE_SELECTION_TOOL>();
|
||||
std::unique_ptr<ACTION_MENU> gridMenu = std::make_unique<ACTION_MENU>( false, selTool );
|
||||
gridMenu->Add( ACTIONS::gridProperties );
|
||||
gridMenu->Add( ACTIONS::gridOrigin );
|
||||
m_optionsToolBar->AddToolContextMenu( ACTIONS::toggleGrid, std::move( gridMenu ) );
|
||||
|
||||
m_optionsToolBar->KiRealize();
|
||||
|
|
|
@ -174,7 +174,6 @@ void PL_EDITOR_FRAME::ReCreateOptToolbar()
|
|||
PL_SELECTION_TOOL* selTool = m_toolManager->GetTool<PL_SELECTION_TOOL>();
|
||||
std::unique_ptr<ACTION_MENU> gridMenu = std::make_unique<ACTION_MENU>( false, selTool );
|
||||
gridMenu->Add( ACTIONS::gridProperties );
|
||||
gridMenu->Add( ACTIONS::gridOrigin );
|
||||
m_optionsToolBar->AddToolContextMenu( ACTIONS::toggleGrid, std::move( gridMenu ) );
|
||||
|
||||
m_optionsToolBar->Add( ACTIONS::toggleGrid, ACTION_TOOLBAR::TOGGLE );
|
||||
|
|
Loading…
Reference in New Issue