Enable Save As for footprints with no current library.
Fixes: lp:1840997 * https://bugs.launchpad.net/kicad/+bug/1840997
This commit is contained in:
parent
d080c928a7
commit
32aa265175
|
@ -50,11 +50,11 @@ void FOOTPRINT_EDIT_FRAME::ReCreateMenuBar()
|
|||
auto modifiedDocumentCondition = [this]( const SELECTION& sel ) {
|
||||
return !GetBoard()->Modules().empty() && GetScreen()->IsModify();
|
||||
};
|
||||
auto haveFootprintCondition = [ this ] ( const SELECTION& aSelection ) {
|
||||
auto haveFootprintCondition = [this]( const SELECTION& aSelection ) {
|
||||
return GetBoard()->GetFirstModule() != nullptr;
|
||||
};
|
||||
auto footprintTargettedCondition = [ this ] ( const SELECTION& aSelection ) {
|
||||
return GetTargetFPID().IsValid();
|
||||
auto footprintTargettedCondition = [this]( const SELECTION& aSelection ) {
|
||||
return !GetTargetFPID().GetLibItemName().empty();
|
||||
};
|
||||
|
||||
//-- File menu ----------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue