mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Hide materials belong to a to-be-removed package
This commit is contained in:
parent
5255d6ca2a
commit
76417b7fb2
6 changed files with 46 additions and 10 deletions
|
|
@ -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] = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue