Simplify the packageList

CURA-8587
This commit is contained in:
Jaime van Kessel 2021-12-16 22:54:12 +01:00
parent bd7a73e7ef
commit fa7ad7ddb1

View File

@ -297,6 +297,4 @@ class PackageList(ListModel):
:param package_id: the package identification string
"""
self._package_manager.removePackage(package_id, force_add = not self._package_manager.isBundledPackage(package_id))
if url == "":
url = self._package_manager.package_infosWithUpdate[package_id]["download_url"]
self.download(package_id, url, True)