Also remove DCD cache when a libman entry is removed

This commit is contained in:
Basile Burg 2018-08-10 08:53:21 +02:00
parent 9f08e32488
commit fc63dbefee
1 changed files with 7 additions and 1 deletions

View File

@ -411,6 +411,7 @@ begin
cli.dependencies.Delete(j); cli.dependencies.Delete(j);
end; end;
end; end;
DCDWrapper.remImportFolder(lib.libSourcePath);
fItemsByAlias.delete(lib.libAlias); fItemsByAlias.delete(lib.libAlias);
end; end;
end; end;
@ -469,7 +470,12 @@ begin
begin begin
itm := TLibraryItem(fCollection.Items[i]); itm := TLibraryItem(fCollection.Items[i]);
if itm.enabled then if itm.enabled then
add.Add(itm.libSourcePath) begin
if itm.hasValidLibSourcePath then
add.Add(itm.libSourcePath)
else
rem.Add(itm.libSourcePath);
end
else else
rem.Add(itm.libSourcePath); rem.Add(itm.libSourcePath);
end; end;