pcbnew: Fix Select All copy-pasta
Adds condition to footprint editor and corrects condition for both modedit and pcbnew
This commit is contained in:
parent
dc7e1783b3
commit
0dc0536cbf
|
@ -964,6 +964,7 @@ void FOOTPRINT_EDIT_FRAME::setupUIConditions()
|
|||
mgr->SetConditions( ACTIONS::pasteSpecial, ENABLE( SELECTION_CONDITIONS::Idle && cond.NoActiveTool() ) );
|
||||
mgr->SetConditions( ACTIONS::doDelete, ENABLE( SELECTION_CONDITIONS::NotEmpty ) );
|
||||
mgr->SetConditions( ACTIONS::duplicate, ENABLE( SELECTION_CONDITIONS::NotEmpty ) );
|
||||
mgr->SetConditions( ACTIONS::selectAll, ENABLE( cond.HasItems() ) );
|
||||
|
||||
mgr->SetConditions( PCB_ACTIONS::padDisplayMode, CHECK( !cond.PadFillDisplay() ) );
|
||||
mgr->SetConditions( PCB_ACTIONS::textOutlines, CHECK( !cond.TextFillDisplay() ) );
|
||||
|
|
|
@ -41,7 +41,7 @@ SELECTION_CONDITION PCB_EDITOR_CONDITIONS::HasItems()
|
|||
|
||||
wxASSERT( drwFrame );
|
||||
|
||||
return std::bind( &PCB_EDITOR_CONDITIONS::padNumberDisplayFunc, _1, drwFrame );
|
||||
return std::bind( &PCB_EDITOR_CONDITIONS::hasItemsFunc, _1, drwFrame );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue