From 0c415a7190fc3d1041793a798f67e3c9ab89cf74 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Wed, 28 Dec 2022 13:33:35 -0500 Subject: [PATCH] PCB Editor: make rotate menu bar items conditional on selection items --- pcbnew/pcb_edit_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 741afdd130..f814f8e688 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -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 ) );