mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
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:
parent
cbd1b8fbf7
commit
4b86f7bb29
1 changed files with 2 additions and 4 deletions
|
@ -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,9 +150,8 @@ 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.
|
||||
package = PackageModel(package_data, parent = self)
|
||||
self.appendItem({"package": package}) # Add it to this list model.
|
||||
|
||||
self._request_url = response_data["links"].get("next", "") # Use empty string to signify that there is no next page.
|
||||
self.hasMoreChanged.emit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue