From d6ad8ed09e89fd7d7f49f096004b700ad6fe1b6b Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Tue, 8 May 2018 16:52:09 +0200 Subject: [PATCH] CURA-5296 Move installed plugins to "installed" dict --- cura/CuraPackageManager.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py index b3a1451e6b..0a59dac677 100644 --- a/cura/CuraPackageManager.py +++ b/cura/CuraPackageManager.py @@ -35,8 +35,10 @@ class CuraPackageManager(QObject): "resources", "packages.json" ) - self._user_package_management_file_path = os.path.join(os.path.abspath(Resources.getDataStoragePath()), "packages.json") - + self._user_package_management_file_path = os.path.join( + os.path.abspath(Resources.getDataStoragePath()), + "packages.json" + ) self._bundled_package_dict = {} # A dict of all bundled packages self._installed_package_dict = {} # A dict of all installed packages @@ -100,6 +102,8 @@ class CuraPackageManager(QObject): def _installAllScheduledPackages(self) -> None: for package_id, installation_package_data in self._to_install_package_dict.items(): self._installPackage(installation_package_data) + self._installed_package_dict[package_id] = self._to_install_package_dict[package_id] + self._saveManagementData() self._to_install_package_dict.clear() self._saveManagementData()