mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Groundwork for installing/updating packages
Contributes to: CURA-8587
This commit is contained in:
parent
08067432c6
commit
3b3d986058
4 changed files with 73 additions and 14 deletions
|
|
@ -89,7 +89,8 @@ class LocalPackageList(PackageList):
|
|||
return
|
||||
|
||||
for package_data in response_data["data"]:
|
||||
index = self.find("package", package_data["package_id"])
|
||||
self.getItem(index)["package"].canUpdate = True
|
||||
package = self._getPackageModel(package_data["package_id"])
|
||||
package.download_url = package_data.get("download_url", "")
|
||||
package.canUpdate = True
|
||||
|
||||
self.sort(attrgetter("sectionTitle", "canUpdate", "displayName"), key = "package", reverse = True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue