From a1b514bcba7cbb6f2fd130550ad8ce116bc4e43c 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 --- 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 3546a90553..8d6aec2a79 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -821,7 +821,10 @@ static VIATYPE getViaTypeFromFlags( int aFlags ) int ROUTER_TOOL::onLayerCommand( const TOOL_EVENT& aEvent ) { - return handleLayerSwitch( aEvent, false ); + handleLayerSwitch( aEvent, false ); + UpdateMessagePanel(); + + return 0; } @@ -839,6 +842,7 @@ int ROUTER_TOOL::onViaCommand( const TOOL_EVENT& aEvent ) m_router->Move( m_endSnapPoint, m_endItem ); } + UpdateMessagePanel(); return 0; }