Only check for part updates if loading from a zip file.

This commit is contained in:
leo 2014-03-07 02:39:28 +00:00
parent 24ab5c2cc9
commit 2bc23fe871
2 changed files with 8 additions and 2 deletions

View file

@ -107,7 +107,7 @@ bool lcApplication::LoadPiecesLibrary(const char* LibPath, const char* LibraryIn
if (mLibrary->Load(LibraryPath, LibraryCachePath))
{
mLibrary->mNumOfficialPieces = mLibrary->mPieces.GetSize();
mLibrary->SetOfficialPieces();
return true;
}
}
@ -468,4 +468,4 @@ void lcApplication::ShowPreferencesDialog()
*/
lcGetActiveProject()->UpdateAllViews();
}
}

View file

@ -121,6 +121,12 @@ public:
void GetCategoryEntries(int CategoryIndex, bool GroupPieces, lcArray<PieceInfo*>& SinglePieces, lcArray<PieceInfo*>& GroupedPieces);
void GetPatternedPieces(PieceInfo* Parent, lcArray<PieceInfo*>& Pieces) const;
void SetOfficialPieces()
{
if (mZipFile)
mNumOfficialPieces = mPieces.GetSize();
}
lcArray<PieceInfo*> mPieces;
lcArray<lcLibraryPrimitive*> mPrimitives;
int mNumOfficialPieces;