Update message panel after switching layers.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16247

(cherry picked from commit a1b514bcba)
This commit is contained in:
Jeff Young 2023-12-03 17:06:45 +00:00
parent 4cb9edd9f0
commit dbf5455656
1 changed files with 5 additions and 1 deletions

View File

@ -865,7 +865,10 @@ static PCB_LAYER_ID getTargetLayerFromEvent( const TOOL_EVENT& aEvent )
int ROUTER_TOOL::onLayerCommand( 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 ); m_router->Move( m_endSnapPoint, m_endItem );
} }
UpdateMessagePanel();
return 0; return 0;
} }