Adding functionality to the manageButtons

Contributes to: CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-02 08:21:57 +01:00
parent 327b434788
commit ff5a4a4f5a
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
4 changed files with 34 additions and 4 deletions

View file

@ -60,7 +60,9 @@ class LocalPackageList(PackageList):
bundled_or_installed = "installed" if self._manager.isUserInstalledPackage(package_info["package_id"]) else "bundled"
package_type = package_info["package_type"]
section_title = self.PACKAGE_CATEGORIES[bundled_or_installed][package_type]
return PackageModel(package_info, section_title = section_title, parent = self)
package = PackageModel(package_info, section_title = section_title, parent = self)
self._connectManageButtonSignals(package)
return package
def checkForUpdates(self, packages: List[Dict[str, Any]]):
installed_packages = "installed_packages=".join([f"{package['package_id']}:{package['package_version']}&" for package in packages])