From dbf5455656608dda77ee4e979702c17006295a30 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 3 Dec 2023 17:06:45 +0000 Subject: [PATCH] Update message panel after switching layers. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16247 (cherry picked from commit a1b514bcba7cbb6f2fd130550ad8ce116bc4e43c) --- pcbnew/router/router_tool.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index ab6a7a87de..c945ebea2a 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -865,7 +865,10 @@ static PCB_LAYER_ID getTargetLayerFromEvent( const TOOL_EVENT& aEvent ) int ROUTER_TOOL::onLayerCommand( const TOOL_EVENT& aEvent ) { - return handleLayerSwitch( aEvent, false ); + handleLayerSwitch( aEvent, false ); + UpdateMessagePanel(); + + return 0; } @@ -883,6 +886,7 @@ int ROUTER_TOOL::onViaCommand( const TOOL_EVENT& aEvent ) m_router->Move( m_endSnapPoint, m_endItem ); } + UpdateMessagePanel(); return 0; }