Only toggle net selection when coming from hotkey.
(The context menu has separate commands for highlight and clear highlight.) Fixes https://gitlab.com/kicad/code/kicad/-/issues/17709
This commit is contained in:
@@ -1765,7 +1765,7 @@ int BOARD_INSPECTION_TOOL::HighlightItem( const TOOL_EVENT& aEvent )
|
||||
const std::set<int>& netcodes = settings->GetHighlightNetCodes();
|
||||
|
||||
// Toggle highlight when the same net was picked
|
||||
if( netcodes.count( net ) )
|
||||
if( !aUseSelection && netcodes.size() == 1 && netcodes.contains( net ) )
|
||||
enableHighlight = !settings->IsHighlightEnabled();
|
||||
|
||||
if( enableHighlight != settings->IsHighlightEnabled() || !netcodes.count( net ) )
|
||||
|
||||
Reference in New Issue
Block a user