Check /all/ libraries when toggling the Save All toolbar button.
This commit is contained in:
parent
ea62b19b58
commit
d4816d843d
|
@ -550,6 +550,7 @@ void LIB_EDIT_FRAME::DeletePartFromLibrary()
|
|||
|
||||
m_libMgr->RemovePart( libId.GetLibItemName(), libId.GetLibNickname() );
|
||||
|
||||
m_treePane->GetLibTree()->RefreshLibTree();
|
||||
refreshSchematic();
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue