From 29a40ddf9cf0c0dc22cdb3061867c43095bfc240 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sat, 23 May 2020 18:34:56 +0100 Subject: [PATCH] Readd text sketch mode to the footprint editor toolbars This was removed during the transition to tool actions, but the setting still exists, so it can get enabled with no way to turn it off. Another solution would be to remove the option for text sketch completely, but I am too lazy to do that right now. Fixes https://gitlab.com/kicad/code/kicad/issues/4269 --- pcbnew/toolbars_footprint_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/toolbars_footprint_editor.cpp b/pcbnew/toolbars_footprint_editor.cpp index 7c5ad14414..418d80353d 100644 --- a/pcbnew/toolbars_footprint_editor.cpp +++ b/pcbnew/toolbars_footprint_editor.cpp @@ -182,6 +182,7 @@ void FOOTPRINT_EDIT_FRAME::ReCreateOptToolbar() m_optionsToolBar->AddSeparator(); m_optionsToolBar->Add( PCB_ACTIONS::padDisplayMode, ACTION_TOOLBAR::TOGGLE ); + m_optionsToolBar->Add( PCB_ACTIONS::moduleTextOutlines, ACTION_TOOLBAR::TOGGLE ); m_optionsToolBar->Add( PCB_ACTIONS::moduleEdgeOutlines, ACTION_TOOLBAR::TOGGLE ); m_optionsToolBar->Add( ACTIONS::highContrastMode, ACTION_TOOLBAR::TOGGLE ); @@ -240,6 +241,7 @@ void FOOTPRINT_EDIT_FRAME::SyncToolbars() m_optionsToolBar->Toggle( ACTIONS::imperialUnits, GetUserUnits() == EDA_UNITS::INCHES ); m_optionsToolBar->Toggle( ACTIONS::togglePolarCoords, GetShowPolarCoords() ); m_optionsToolBar->Toggle( PCB_ACTIONS::padDisplayMode, !opts.m_DisplayPadFill ); + m_optionsToolBar->Toggle( PCB_ACTIONS::moduleTextOutlines, !opts.m_DisplayModTextFill ); m_optionsToolBar->Toggle( PCB_ACTIONS::moduleEdgeOutlines, !opts.m_DisplayModEdgeFill ); m_optionsToolBar->Toggle( ACTIONS::highContrastMode, opts.m_ContrastModeDisplay ); m_optionsToolBar->Toggle( PCB_ACTIONS::toggleFootprintTree, IsSearchTreeShown() );