Check /all/ libraries when toggling the Save All toolbar button.

This commit is contained in:
Jeff Young 2019-12-02 20:24:16 +00:00
parent ea62b19b58
commit d4816d843d
2 changed files with 4 additions and 2 deletions

View File

@ -550,6 +550,7 @@ void LIB_EDIT_FRAME::DeletePartFromLibrary()
m_libMgr->RemovePart( libId.GetLibItemName(), libId.GetLibNickname() );
m_treePane->GetLibTree()->RefreshLibTree();
refreshSchematic();
}

View File

@ -156,9 +156,10 @@ void LIB_EDIT_FRAME::SyncToolbars()
LIB_ID libId = getTargetLibId();
const wxString& libName = libId.GetLibNickname();
const wxString& partName = libId.GetLibItemName();
bool modified = m_libMgr->IsLibraryModified( libName );
if( !partName.IsEmpty() && m_libMgr->IsPartModified( partName, libName ) )
bool modified = m_libMgr->HasModifications();
if( !modified && !partName.IsEmpty() && m_libMgr->IsPartModified( partName, libName ) )
modified = true;
m_mainToolBar->Toggle( ACTIONS::saveAll, modified );