mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
renamed locally_installed property
Contributes to: CURA-8587
This commit is contained in:
parent
bd2f270803
commit
305fb4ab09
3 changed files with 13 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue