Hide materials belong to a to-be-removed package

This commit is contained in:
Lipu Fei 2018-07-11 10:57:55 +02:00
parent 5255d6ca2a
commit 76417b7fb2
6 changed files with 46 additions and 10 deletions

View file

@ -109,6 +109,10 @@ class BrandMaterialsModel(ListModel):
if brand.lower() == "generic":
continue
# Do not include the materials from a to-be-removed package
if bool(metadata.get("removed", False)):
continue
if brand not in brand_group_dict:
brand_group_dict[brand] = {}