Rework of the ManageButton

Now uses the internal signal

Contributes to: CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-08 18:47:56 +01:00
parent 4c516e8cec
commit 9f41115bc1
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
7 changed files with 168 additions and 262 deletions

View file

@ -66,9 +66,7 @@ class LocalPackageList(PackageList):
section_title = self.PACKAGE_CATEGORIES[bundled_or_installed][package_type]
package = PackageModel(package_info, section_title = section_title, parent = self)
self._connectManageButtonSignals(package)
package.can_downgrade = self._manager.canDowngrade(package_id)
if package_id in self._manager.getPackagesToRemove() or package_id in self._manager.getPackagesToInstall():
package.installation_status_changed = True
package.setCanDowngrade(self._manager.canDowngrade(package_id))
return package
def checkForUpdates(self, packages: List[Dict[str, Any]]):