Symbol editor: enable save command when only libraries are modified.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6445
This commit is contained in:
Wayne Stambaugh 2020-12-03 08:17:09 -05:00
parent cf6620f8fa
commit fd3348690d
1 changed files with 3 additions and 2 deletions

View File

@ -361,7 +361,8 @@ void SYMBOL_EDIT_FRAME::setupUIConditions()
mgr->SetConditions( ACTIONS::saveAll,
ENABLE( libMgrModifiedCond ) );
mgr->SetConditions( ACTIONS::save,
ENABLE( haveSymbolCond && modifiedDocumentCondition ) );
ENABLE( libMgrModifiedCond ||
( haveSymbolCond && modifiedDocumentCondition ) ) );
mgr->SetConditions( EE_ACTIONS::saveInSchematic, ENABLE( libMgrModifiedCond ) );
mgr->SetConditions( ACTIONS::undo,
ENABLE( haveSymbolCond && cond.UndoAvailable() ) );