store 2 items of each imported book.

This commit is contained in:
nek0 2020-04-27 14:39:16 +02:00
parent f87067ffb6
commit 6b076a7538

View file

@ -220,6 +220,11 @@ namespace Bücherwurm
public void MakeImport(string JsonText) public void MakeImport(string JsonText)
{ {
Catalogue.Import(JsonText); Catalogue.Import(JsonText);
foreach (var book in Catalogue.GetBooks())
{
Inventory.Add(book);
Inventory.Add(book);
}
} }
} }
} }