mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Adding functionality to the manageButtons
Contributes to: CURA-8587
This commit is contained in:
parent
327b434788
commit
ff5a4a4f5a
4 changed files with 34 additions and 4 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue