Fix net highlight command enablement.
These always need to be enabled so that the current highlight can be cleared. Fixes https://gitlab.com/kicad/code/kicad/issues/12058
This commit is contained in:
parent
9dd3bbf2cb
commit
280ff3ccdc
|
@ -767,9 +767,10 @@ void PCB_EDIT_FRAME::setupUIConditions()
|
|||
return false;
|
||||
};
|
||||
|
||||
mgr->SetConditions( PCB_ACTIONS::showNet, ENABLE( haveNetCond ) );
|
||||
mgr->SetConditions( PCB_ACTIONS::hideNet, ENABLE( haveNetCond ) );
|
||||
mgr->SetConditions( PCB_ACTIONS::highlightNet, ENABLE( haveNetCond ) );
|
||||
mgr->SetConditions( PCB_ACTIONS::showNet, ENABLE( haveNetCond ) );
|
||||
mgr->SetConditions( PCB_ACTIONS::hideNet, ENABLE( haveNetCond ) );
|
||||
mgr->SetConditions( PCB_ACTIONS::highlightNet, ENABLE( SELECTION_CONDITIONS::ShowAlways ) );
|
||||
mgr->SetConditions( PCB_ACTIONS::highlightNetSelection, ENABLE( SELECTION_CONDITIONS::ShowAlways ) );
|
||||
|
||||
mgr->SetConditions( PCB_ACTIONS::selectNet,
|
||||
ENABLE( SELECTION_CONDITIONS::OnlyTypes( GENERAL_COLLECTOR::Tracks ) ) );
|
||||
|
|
Loading…
Reference in New Issue