Check for active tool as well as items.

Fixes https://gitlab.com/kicad/code/kicad/issues/7821
This commit is contained in:
Jeff Young 2021-03-08 14:08:44 +00:00
parent 6da25337a9
commit 6fd247a152
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ void SCH_EDIT_FRAME::setupUIConditions()
auto hasElements = auto hasElements =
[ this ] ( const SELECTION& aSel ) [ this ] ( const SELECTION& aSel )
{ {
return !GetScreen()->Items().empty(); return !GetScreen()->Items().empty() || !SELECTION_CONDITIONS::Idle( aSel );
}; };
#define ENABLE( x ) ACTION_CONDITIONS().Enable( x ) #define ENABLE( x ) ACTION_CONDITIONS().Enable( x )