mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:55:54 +08:00
Revert "Only show plugin and material packages"
This reverts commit cdf05a56065321d9fc15767490d846680f3dc63f. It's no longer necessary since we filter on package type now anyway. Contributes to issue CURA-8557.
This commit is contained in:
parent
cbd1b8fbf7
commit
4b86f7bb29
@ -33,7 +33,6 @@ class PackageList(ListModel):
|
||||
PackageRole = Qt.UserRole + 1
|
||||
|
||||
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:
|
||||
super().__init__(parent)
|
||||
@ -151,7 +150,6 @@ class PackageList(ListModel):
|
||||
return
|
||||
|
||||
for package_data in response_data["data"]:
|
||||
if package_data["package_type"] in self.INCLUDED_PACKAGE_TYPE:
|
||||
package = PackageModel(package_data, parent = self)
|
||||
self.appendItem({"package": package}) # Add it to this list model.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user