Revert "Only show plugin and material packages"

This reverts commit cdf05a5606.
It's no longer necessary since we filter on package type now anyway.

Contributes to issue CURA-8557.
This commit is contained in:
Ghostkeeper 2021-10-28 21:45:58 +02:00
parent cbd1b8fbf7
commit 4b86f7bb29
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -33,7 +33,6 @@ class PackageList(ListModel):
PackageRole = Qt.UserRole + 1 PackageRole = Qt.UserRole + 1
ITEMS_PER_PAGE = 20 # Pagination of number of elements to download at once. ITEMS_PER_PAGE = 20 # Pagination of number of elements to download at once.
INCLUDED_PACKAGE_TYPE = ("material", "plugin") # Only show these kind of packages
def __init__(self, parent: "QObject" = None) -> None: def __init__(self, parent: "QObject" = None) -> None:
super().__init__(parent) super().__init__(parent)
@ -151,7 +150,6 @@ class PackageList(ListModel):
return return
for package_data in response_data["data"]: for package_data in response_data["data"]:
if package_data["package_type"] in self.INCLUDED_PACKAGE_TYPE:
package = PackageModel(package_data, parent = self) package = PackageModel(package_data, parent = self)
self.appendItem({"package": package}) # Add it to this list model. self.appendItem({"package": package}) # Add it to this list model.