diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2018-06-05 10:55:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 10:55:07 +0300 |
commit | 96ddf61f81fef9be96b0e062a26d4d0cb48af3cf (patch) | |
tree | 6ee1ee2f3fd27e0acea3a180bbbd460c867b1b91 /cura/CuraPackageManager.py | |
parent | bbd019f9e5917c44dcb3edc032a5a87ce705c827 (diff) | |
parent | 71f41b8ada7fd0cdaebcc0c6fdf54f1bdacd622d (diff) |
Merge pull request #3878 from Ultimaker/feature_update_old_plugins
Feature update old plugins
Diffstat (limited to 'cura/CuraPackageManager.py')
-rw-r--r-- | cura/CuraPackageManager.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py index 096bfc9065..24a7bda267 100644 --- a/cura/CuraPackageManager.py +++ b/cura/CuraPackageManager.py @@ -134,7 +134,7 @@ class CuraPackageManager(QObject): return None - def getAllInstalledPackagesInfo(self) -> dict: + def getAllInstalledPackageIDs(self) -> set: # Add bundled, installed, and to-install packages to the set of installed package IDs all_installed_ids = set() @@ -147,6 +147,12 @@ class CuraPackageManager(QObject): if self._to_install_package_dict.keys(): all_installed_ids = all_installed_ids.union(set(self._to_install_package_dict.keys())) + return all_installed_ids + + def getAllInstalledPackagesInfo(self) -> dict: + + all_installed_ids = self.getAllInstalledPackageIDs() + # map of <package_type> -> <package_id> -> <package_info> installed_packages_dict = {} for package_id in all_installed_ids: |