renamed locally_installed property

Contributes to: CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-05 16:23:23 +01:00
parent bd2f270803
commit 305fb4ab09
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
3 changed files with 13 additions and 16 deletions

View file

@ -31,7 +31,7 @@ class RemotePackageList(PackageList):
self._request_url = self._initialRequestUrl()
self.isLoadingChanged.connect(self._onLoadingChanged)
self.isLoadingChanged.emit()
self._locally_installed: Set[str] = { p["package_id"] for p in self._manager.locally_installed_packages }
self._local_packages: Set[str] = { p["package_id"] for p in self._manager.local_packages }
def __del__(self) -> None:
"""
@ -129,7 +129,7 @@ class RemotePackageList(PackageList):
return
for package_data in response_data["data"]:
if package_data["package_id"] in self._locally_installed:
if package_data["package_id"] in self._local_packages:
continue # We should only show packages which are not already installed
try:
package = PackageModel(package_data, parent = self)