diff options
author | Jaime van Kessel <nallath@gmail.com> | 2021-12-13 13:54:13 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2021-12-13 13:54:13 +0300 |
commit | eb11e92637fce88d12557959fea85c1a1cf9e1af (patch) | |
tree | 952bf097ca039ed4ca506c126a03340308c2b5df /cura | |
parent | 4f997319b0a71052b97b789481c35d4c3bcfa007 (diff) |
Rename local_packages_id to local_packages_ids
CURA-8587
Diffstat (limited to 'cura')
-rw-r--r-- | cura/CuraPackageManager.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py index fcbf5f6ea6..535d331a62 100644 --- a/cura/CuraPackageManager.py +++ b/cura/CuraPackageManager.py @@ -20,12 +20,12 @@ class CuraPackageManager(PackageManager): def __init__(self, application: "QtApplication", parent: Optional["QObject"] = None) -> None: super().__init__(application, parent) self._local_packages: Optional[List[Dict[str, Any]]] = None - self._local_packages_id: Optional[Set[str]] = None + self._local_packages_ids: Optional[Set[str]] = None self.installedPackagesChanged.connect(self._updateLocalPackages) def _updateLocalPackages(self) -> None: self._local_packages = self.getAllLocalPackages() - self._local_packages_id = set(pkg["package_id"] for pkg in self._local_packages) + self._local_packages_ids = set(pkg["package_id"] for pkg in self._local_packages) @property def local_packages(self) -> List[Dict[str, Any]]: @@ -37,13 +37,13 @@ class CuraPackageManager(PackageManager): return cast(List[Dict[str, Any]], self._local_packages) @property - def local_packages_id(self) -> Set[str]: + def local_packages_ids(self) -> Set[str]: """locally installed packages, lazy execution""" - if self._local_packages_id is None: + if self._local_packages_ids is None: self._updateLocalPackages() # _updateLocalPackages always results in a list of packages, not None. # It's guaranteed to be a list now. - return cast(Set[str], self._local_packages_id) + return cast(Set[str], self._local_packages_ids) def initialize(self) -> None: self._installation_dirs_dict["materials"] = Resources.getStoragePath(CuraApplication.ResourceTypes.MaterialInstanceContainer) |