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

@ -123,8 +123,6 @@ class RemotePackageList(PackageList):
try:
package = PackageModel(package_data, parent = self)
self._connectManageButtonSignals(package)
if package_id in self._manager.getPackagesToRemove() or package_id in self._manager.getPackagesToInstall():
package.installation_status_changed = True
self.appendItem({"package": package}) # Add it to this list model.
except RuntimeError:
# Setting the ownership of this object to not qml can still result in a RuntimeError. Which can occur when quickly toggling