Check for active tool as well as items.
Fixes https://gitlab.com/kicad/code/kicad/issues/7821
This commit is contained in:
parent
6da25337a9
commit
6fd247a152
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue