PCB Editor: make rotate menu bar items conditional on selection items

This commit is contained in:
Mike Williams 2022-12-28 13:33:35 -05:00
parent 495f337fa5
commit 0c415a7190
1 changed files with 2 additions and 0 deletions

View File

@ -696,6 +696,8 @@ void PCB_EDIT_FRAME::setupUIConditions()
return SELECTION_CONDITIONS::HasTypes( EDIT_TOOL::MirrorableItems )( aSelection );
};
mgr->SetConditions( PCB_ACTIONS::rotateCcw, ENABLE( SELECTION_CONDITIONS::NotEmpty ) );
mgr->SetConditions( PCB_ACTIONS::rotateCw, ENABLE( SELECTION_CONDITIONS::NotEmpty ) );
mgr->SetConditions( PCB_ACTIONS::mirrorH, ENABLE( canMirror ) );
mgr->SetConditions( PCB_ACTIONS::mirrorV, ENABLE( canMirror ) );