Subscribe the user to a reinstalled package again

Contributes to CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-16 10:23:23 +01:00
parent 447e0443a2
commit 020313da25
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -275,6 +275,9 @@ class PackageList(ListModel):
"""
if not self._package_manager.reinstallPackage(package_id):
self.download(package_id, url, False)
else:
package = self.getPackageModel(package_id)
self.subscribeUserToPackage(package_id, str(package.sdk_version))
def uninstallPackage(self, package_id: str) -> None:
"""Uninstall a package from the Marketplace